From 5fffca1eeabbe51d4e9923f08c89d4e46cb05289 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 17 Jan 2024 20:25:33 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=BD=AF=E4=BB=B6=E6=BF=80=E6=B4=BBom?= =?UTF-8?q?clong?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/locked.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/store/modules/locked.ts b/src/store/modules/locked.ts index 3ec218ee..139a58c4 100644 --- a/src/store/modules/locked.ts +++ b/src/store/modules/locked.ts @@ -27,7 +27,7 @@ const useLockedStore = defineStore('locked', { const res = await getSysConf(); if (res.code === RESULT_CODE_SUCCESS && res.data) { console.log(res); - this.fnLock('lock',false) + this.fnLock('lock', false); } else { // 延迟5秒 setTimeout(() => { @@ -41,7 +41,10 @@ const useLockedStore = defineStore('locked', { this.isLocked = v; localSet(CACHE_LOCAL_LOCK, `${v}`); if (type === 'reload') { - this.relaodWait(); + // 延迟5秒 + setTimeout(() => { + this.relaodWait(); + }, 5_000); } }, },