From 90ccf87debd06dd1c11b9aa95471b664835cea79 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 18 Jan 2024 14:20:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=94=81=E5=B1=8F=E9=87=8D=E5=90=AF?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/LockScreen/index.vue | 6 ++---- src/store/modules/locked.ts | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/LockScreen/index.vue b/src/components/LockScreen/index.vue index 57c6017e..b4eeddf5 100644 --- a/src/components/LockScreen/index.vue +++ b/src/components/LockScreen/index.vue @@ -53,16 +53,14 @@ function backLogin() { const isLocked = computed(() => lockedStore.type !== 'none'); onMounted(() => { - debugger - console.log(lockedStore.type); - // 本地锁定类型设置 - lockedStore.fnLock(lockedStore.type); getConfigKey('sys.lockTime') .then(res => { if (res.code === RESULT_CODE_SUCCESS && res.data) { lockedStore.lockTimeout = res.data; timeoutDuration = res.data * 1000; } + // 本地锁定类型设置 + lockedStore.fnLock(lockedStore.type); }) .finally(() => { if (timeoutDuration !== 0) { diff --git a/src/store/modules/locked.ts b/src/store/modules/locked.ts index 71eb9688..25f87cb9 100644 --- a/src/store/modules/locked.ts +++ b/src/store/modules/locked.ts @@ -21,7 +21,6 @@ const useLockedStore = defineStore('locked', { actions: { // 重启等待-轮询 async relaodWait() { - debugger try { const res = await getSysConf(); if (res.code === RESULT_CODE_SUCCESS && res.data) { @@ -29,7 +28,6 @@ const useLockedStore = defineStore('locked', { window.location.reload(); } } catch (error) { - console.log(error) // 延迟5秒 setTimeout(() => { this.relaodWait();