fix: 锁屏reload延迟解除防止二次重启导致服务失败
This commit is contained in:
@@ -24,8 +24,11 @@ const useLockedStore = defineStore('locked', {
|
|||||||
try {
|
try {
|
||||||
const res = await getSysConf();
|
const res = await getSysConf();
|
||||||
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
||||||
this.fnLock('none');
|
// 延迟5秒
|
||||||
window.location.reload();
|
setTimeout(() => {
|
||||||
|
this.fnLock('none');
|
||||||
|
window.location.reload();
|
||||||
|
}, 2_000);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// 延迟5秒
|
// 延迟5秒
|
||||||
|
|||||||
Reference in New Issue
Block a user