fix: 锁屏重启判断

This commit is contained in:
TsMask
2024-01-18 12:21:48 +08:00
parent e50e081843
commit b485e14ff4
2 changed files with 4 additions and 3 deletions

View File

@@ -53,11 +53,11 @@ function backLogin() {
const isLocked = computed(() => lockedStore.type !== 'none');
onMounted(() => {
console.log(lockedStore.type);
// 本地锁定类型设置
lockedStore.fnLock(lockedStore.type);
getConfigKey('sys.lockTime')
.then(res => {
console.log(res, lockedStore.type);
// 本地锁定类型设置
lockedStore.fnLock(lockedStore.type);
if (res.code === RESULT_CODE_SUCCESS && res.data) {
lockedStore.lockTimeout = res.data;
timeoutDuration = res.data * 1000;