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); } }, },