fix: 锁屏重启判断
This commit is contained in:
@@ -21,11 +21,13 @@ const useLockedStore = defineStore('locked', {
|
||||
actions: {
|
||||
// 重启等待-轮询
|
||||
async relaodWait() {
|
||||
const res = await getSysConf();
|
||||
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
||||
this.fnLock('none');
|
||||
window.location.reload();
|
||||
} else {
|
||||
try {
|
||||
const res = await getSysConf();
|
||||
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
||||
this.fnLock('none');
|
||||
window.location.reload();
|
||||
}
|
||||
} catch (e) {
|
||||
// 延迟5秒
|
||||
setTimeout(() => {
|
||||
this.relaodWait();
|
||||
|
||||
Reference in New Issue
Block a user