From 2c7ddcd371b70ab0737171bbf6831d73f252405d Mon Sep 17 00:00:00 2001 From: guoapeng Date: Wed, 11 Jun 2025 15:57:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=99=BB=E5=BD=95=E5=90=8E=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=87=AA=E6=A3=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/default.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/layouts/default.vue b/src/layouts/default.vue index fd9119d..6bcda00 100644 --- a/src/layouts/default.vue +++ b/src/layouts/default.vue @@ -37,7 +37,9 @@ watch(() => systemStore.systemStatus, () => { if (!systemStore.systemStatus.currentUser) { router.push('/login') } - isCheck.value = !systemStore.systemStatus.selfTest + if (!systemStore.systemStatus.selfTest && systemStore.systemStatus.currentUser && systemStore.systemStatus.currentUser?.username !== 'test') { + isCheck.value = true + } }) onMounted(async () => { console.log('systemStatus', systemStore.systemStatus) @@ -45,7 +47,7 @@ onMounted(async () => { await router.push('/login') } solutionList.value = (await getSolsList()).list - if (!systemStore.systemStatus.selfTest && systemStore.systemStatus.currentUser?.username !== 'test') { + if (!systemStore.systemStatus.selfTest && systemStore.systemStatus.currentUser && systemStore.systemStatus.currentUser?.username !== 'test') { isCheck.value = true } await checkCraft()