|
|
@ -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() |
|
|
|