+
{{ authInfo.license_code || '' }}
@@ -278,22 +191,13 @@
{{ t('auths.authType') }}
+
{{ authInfo.status ? t('auths.authTempExpire') : t('auths.authexpire') }}
-
+
{{ t('auths.noAuthexpire') }}
@@ -313,6 +217,14 @@
import { User, Unlock, Setting, SwitchButton } from '@element-plus/icons-vue'
import { useLogin } from './useLogin'
import { useSetUp } from './useSetUp'
+import { useI18n } from 'vue-i18n'
+import { useRouter } from 'vue-router'
+import useClipboard from 'vue-clipboard3'
+import { ipcMain } from 'electron'
+import { AuthApi } from '@/api/setting/auth'
+import Dialog from '@/components/dialog/baseDialog.vue'
+import { ElMessage, ElMessageBox } from 'element-plus'
+import { $sendElectronChanel } from '@/utils/communication'
const {
loginFormRef,
@@ -371,26 +283,18 @@ onMounted(() => {
}
}
else {
- ipcRenderer.once('program-init', () => {
+ ipcRenderer.once('program-init', (error, e) => {
if (!router.currentRoute.value.query.type) {
- getAuthCode()
- getAuthInfo()
- } else {
- isAuth.value = false
- }
+ getAuthCode()
+ getAuthInfo()
+ } else {
+ isAuth.value = false
+ }
})
}
})
//授权判断
-import { useI18n } from 'vue-i18n'
-import { useRouter } from 'vue-router'
-import useClipboard from 'vue-clipboard3'
-import { ipcMain } from 'electron'
-import { AuthApi } from '@/api/setting/auth'
-import Dialog from '@/components/dialog/baseDialog.vue'
-import { ElMessage, ElMessageBox } from 'element-plus'
-import { $sendElectronChanel } from '@/utils/communication'
let isAuth = ref(true)
@@ -840,7 +744,7 @@ const validatePortRange = (rule, value, callback) => {
border-radius: 0 0 0 90%;
background: rgba(var(--color-base1), 1);
- & > span {
+ &>span {
font-size: 1rem;
position: absolute;
right: 0px;
@@ -1041,8 +945,7 @@ const validatePortRange = (rule, value, callback) => {
z-index: 99;
background: linear-gradient(0deg, #00ffff33 0%, #00ffff00 100%), rgba(0, 0, 0, 0.6);
border: 1.5px solid;
- border-image: linear-gradient(to bottom, rgba(var(--color-base1), 1) 6.25%, rgb(0, 200, 255) 100%)
- 1;
+ border-image: linear-gradient(to bottom, rgba(var(--color-base1), 1) 6.25%, rgb(0, 200, 255) 100%) 1;
text-align: left;
font-family: 'sy-boldface';
}
@@ -1088,11 +991,11 @@ const validatePortRange = (rule, value, callback) => {
position: relative;
}
-::v-deep .title-box > .close-box {
+::v-deep .title-box>.close-box {
display: none;
}
-::v-deep .title-box > .title {
+::v-deep .title-box>.title {
font-family: 'Ali-mother-counts-bold';
font-size: 18px;
font-weight: 400;
@@ -1115,7 +1018,7 @@ const validatePortRange = (rule, value, callback) => {
justify-content: center;
}
-::v-deep .foot > button {
+::v-deep .foot>button {
margin-left: 10px;
border-radius: 4px;
background: rgba(var(--color-base1), 0.2);
@@ -1127,12 +1030,12 @@ const validatePortRange = (rule, value, callback) => {
cursor: pointer;
}
-::v-deep .foot > button:hover {
+::v-deep .foot>button:hover {
border: 1px solid rgba(var(--color-base1), 1);
color: rgba(var(--color-base1), 1);
}
-::v-deep .foot > .show > .label {
+::v-deep .foot>.show>.label {
margin: 0px 10px;
}
@@ -1207,7 +1110,7 @@ const validatePortRange = (rule, value, callback) => {
border-radius: 0 0 0 90%;
background: rgba(var(--color-base1), 1);
- & > span {
+ &>span {
font-size: 1rem;
position: absolute;
right: 0px;
@@ -1304,8 +1207,7 @@ const validatePortRange = (rule, value, callback) => {
align-items: center;
margin: 15px 0;
- .select {
- }
+ .select {}
}
}
}
@@ -1358,6 +1260,7 @@ const validatePortRange = (rule, value, callback) => {
.el-message-box__headerbtn {
display: none !important;
}
+
.el-message-box__btns {
.el-button {
--el-button-text-color: #fff;