From 9bbeb9fc9a9dd25924150563be7b2977142ca006 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 18 Apr 2024 09:34:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=94=81=E5=B1=8Freload=E5=BB=B6?= =?UTF-8?q?=E8=BF=9F=E8=A7=A3=E9=99=A4=E9=98=B2=E6=AD=A2=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E9=87=8D=E5=90=AF=E5=AF=BC=E8=87=B4=E6=9C=8D=E5=8A=A1=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= 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 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秒