From 50cb92a95be6e84ec0541561e2b56dd2857975e5 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 9 Apr 2024 15:33:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=E9=94=81=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/LockScreen/index.vue | 40 ++++++++++++------------- src/layouts/components/RightContent.vue | 2 +- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/components/LockScreen/index.vue b/src/components/LockScreen/index.vue index b4eeddf5..0c66731e 100644 --- a/src/components/LockScreen/index.vue +++ b/src/components/LockScreen/index.vue @@ -53,30 +53,30 @@ function backLogin() { const isLocked = computed(() => lockedStore.type !== 'none'); onMounted(() => { - 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) { - resetTimeout(); - // 监听用户的操作,重置超时时间 - window.addEventListener('mousemove', resetTimeout); - window.addEventListener('keydown', resetTimeout); - } - }); + // 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) { + // resetTimeout(); + // // 监听用户的操作,重置超时时间 + // window.addEventListener('mousemove', resetTimeout); + // window.addEventListener('keydown', resetTimeout); + // } + // }); }); /**组件实例被卸载之后调用 */ onUnmounted(() => { - if (timeoutId) { - clearTimeout(timeoutId); - } + // if (timeoutId) { + // clearTimeout(timeoutId); + // } }); - +