style: 软件激活omclong

This commit is contained in:
TsMask
2024-01-17 20:25:33 +08:00
parent f357fb5e14
commit 5fffca1eea

View File

@@ -27,7 +27,7 @@ const useLockedStore = defineStore('locked', {
const res = await getSysConf(); const res = await getSysConf();
if (res.code === RESULT_CODE_SUCCESS && res.data) { if (res.code === RESULT_CODE_SUCCESS && res.data) {
console.log(res); console.log(res);
this.fnLock('lock',false) this.fnLock('lock', false);
} else { } else {
// 延迟5秒 // 延迟5秒
setTimeout(() => { setTimeout(() => {
@@ -41,7 +41,10 @@ const useLockedStore = defineStore('locked', {
this.isLocked = v; this.isLocked = v;
localSet(CACHE_LOCAL_LOCK, `${v}`); localSet(CACHE_LOCAL_LOCK, `${v}`);
if (type === 'reload') { if (type === 'reload') {
this.relaodWait(); // 延迟5秒
setTimeout(() => {
this.relaodWait();
}, 5_000);
} }
}, },
}, },