diff --git a/src/store/modules/locked.ts b/src/store/modules/locked.ts index 25f87cb9..c33e5036 100644 --- a/src/store/modules/locked.ts +++ b/src/store/modules/locked.ts @@ -24,8 +24,11 @@ const useLockedStore = defineStore('locked', { try { const res = await getSysConf(); if (res.code === RESULT_CODE_SUCCESS && res.data) { - this.fnLock('none'); - window.location.reload(); + // 延迟5秒 + setTimeout(() => { + this.fnLock('none'); + window.location.reload(); + }, 2_000); } } catch (error) { // 延迟5秒