|
|
@ -1,9 +1,11 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
import Check from 'components/home/Check/index.vue' |
|
|
|
import { ElMessageBox } from 'element-plus' |
|
|
|
import { useSystemStore } from 'stores/useSystemStore' |
|
|
|
import { ref } from 'vue' |
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
|
|
|
|
const systemStore = useSystemStore() |
|
|
|
const router = useRouter() |
|
|
|
|
|
|
|
const checkVisible = ref(false) |
|
|
@ -11,17 +13,19 @@ const ok = () => { |
|
|
|
checkVisible.value = false |
|
|
|
} |
|
|
|
|
|
|
|
ElMessageBox.confirm('检测到您还未完成自检,是否开始自检?', '提示', { |
|
|
|
type: 'warning', |
|
|
|
confirmButtonText: '确定', |
|
|
|
showCancelButton: false, |
|
|
|
showClose: false, |
|
|
|
closeOnClickModal: false, |
|
|
|
closeOnPressEscape: false, |
|
|
|
closeOnHashChange: false, |
|
|
|
}).then(() => { |
|
|
|
checkVisible.value = true |
|
|
|
}) |
|
|
|
if (!systemStore.systemStatus.selfTestCompleted) { |
|
|
|
ElMessageBox.confirm('检测到您还未完成自检,是否开始自检?', '提示', { |
|
|
|
type: 'warning', |
|
|
|
confirmButtonText: '确定', |
|
|
|
showCancelButton: false, |
|
|
|
showClose: false, |
|
|
|
closeOnClickModal: false, |
|
|
|
closeOnPressEscape: false, |
|
|
|
closeOnHashChange: false, |
|
|
|
}).then(() => { |
|
|
|
checkVisible.value = true |
|
|
|
}) |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
|