diff --git a/src/views/mangage/keyCheck.vue b/src/views/mangage/keyCheck.vue
index 0591af1..5210b1b 100644
--- a/src/views/mangage/keyCheck.vue
+++ b/src/views/mangage/keyCheck.vue
@@ -9,10 +9,16 @@
>复制
-
-
密钥状态:{{ showCode }}
-
{{ showText }}
-
{{ showText }}
+
+ 密钥状态:{{ keyStatus == 1 ? "正常" : "作废" }}
+ 恢复
+ 作废
@@ -70,8 +76,21 @@ const copyKey = () => {
});
};
+const keyStatus = ref("");
+
+const getStatus = () => {
+ // 1:正常;2:作废
+ const status = 1;
+ keyStatus.value = status;
+};
+
+const changeStatus = (num) => {
+ keyStatus.value = num;
+};
+
onMounted(() => {
getKey();
+ getStatus();
});
@@ -123,6 +142,30 @@ onMounted(() => {
}
}
}
+ .keyStatus {
+ text-align: center;
+ font-size: 4vh;
+ padding: 5vh;
+
+ .success {
+ color: #ff0000;
+ margin-left: 2vh;
+ cursor: pointer;
+ transition: all 0.3s;
+ &:hover {
+ color: #36db43;
+ }
+ }
+ .fail {
+ color: #36db43;
+ margin-left: 2vh;
+ cursor: pointer;
+ transition: all 0.3s;
+ &:hover {
+ color: #ff0000;
+ }
+ }
+ }
}
}