n20-common-lib 2.7.43 → 2.7.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -49,6 +49,7 @@ const routerBaseRe = new RegExp('^' + routerBase)
|
|
|
49
49
|
import { addListener, removeListener } from 'resize-detector'
|
|
50
50
|
|
|
51
51
|
import { getCert } from '../../plugins/Sign'
|
|
52
|
+
import auth from '../../utils/auth'
|
|
52
53
|
import forEachs from '../../utils/forEachs'
|
|
53
54
|
import { setRela } from '../../utils/relaNo'
|
|
54
55
|
import asideNav from './AsideNav/index.vue'
|
|
@@ -176,11 +177,11 @@ export default {
|
|
|
176
177
|
|
|
177
178
|
window.addEventListener('beforeunload', this.setTabList)
|
|
178
179
|
|
|
179
|
-
const { enableCertify } = await getJsonc('/server-config.jsonc')
|
|
180
|
+
const { enableCertify,enableTime =60000 } = await getJsonc('/server-config.jsonc')
|
|
180
181
|
if (enableCertify) {
|
|
181
182
|
this.certifyInterval = setInterval(() => {
|
|
182
183
|
this.getCertify()
|
|
183
|
-
},
|
|
184
|
+
}, enableTime)
|
|
184
185
|
}
|
|
185
186
|
},
|
|
186
187
|
mounted() {
|
|
@@ -205,6 +206,9 @@ export default {
|
|
|
205
206
|
const cert = await getCert()
|
|
206
207
|
if (cert === -1 || ['dnListEmpty', 'dnIsEmpty', 'Empty'].includes(cert)) {
|
|
207
208
|
this.$message.error($lc(`证书验证失败,请重新登录`))
|
|
209
|
+
setTimeout(() =>{
|
|
210
|
+
auth.removeToken()
|
|
211
|
+
},1000)
|
|
208
212
|
}
|
|
209
213
|
},
|
|
210
214
|
setMainTab(ev) {
|