fix: 锁屏重启判断
This commit is contained in:
@@ -53,11 +53,11 @@ function backLogin() {
|
|||||||
const isLocked = computed(() => lockedStore.type !== 'none');
|
const isLocked = computed(() => lockedStore.type !== 'none');
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
console.log(lockedStore.type);
|
||||||
|
// 本地锁定类型设置
|
||||||
|
lockedStore.fnLock(lockedStore.type);
|
||||||
getConfigKey('sys.lockTime')
|
getConfigKey('sys.lockTime')
|
||||||
.then(res => {
|
.then(res => {
|
||||||
console.log(res, lockedStore.type);
|
|
||||||
// 本地锁定类型设置
|
|
||||||
lockedStore.fnLock(lockedStore.type);
|
|
||||||
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
||||||
lockedStore.lockTimeout = res.data;
|
lockedStore.lockTimeout = res.data;
|
||||||
timeoutDuration = res.data * 1000;
|
timeoutDuration = res.data * 1000;
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ const useLockedStore = defineStore('locked', {
|
|||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.log(error)
|
||||||
// 延迟5秒
|
// 延迟5秒
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.relaodWait();
|
this.relaodWait();
|
||||||
|
|||||||
Reference in New Issue
Block a user