|
|
@ -3,7 +3,7 @@ import { getContainerList } from '@/apis/container' |
|
|
|
import { getSelfFinish, getSelfStatus } from '@/apis/self' |
|
|
|
import { ElMessage } from 'element-plus' |
|
|
|
import { useHomeStore } from 'stores/homeStore' |
|
|
|
import { onMounted, ref, watch } from 'vue' |
|
|
|
import { onMounted, onUnmounted, ref, watch } from 'vue' |
|
|
|
|
|
|
|
interface SelfStatus { |
|
|
|
name: string |
|
|
@ -29,6 +29,9 @@ watch(() => props.checking, (newVal) => { |
|
|
|
onMounted(() => { |
|
|
|
onStartSelfTest() |
|
|
|
}) |
|
|
|
onUnmounted(() => { |
|
|
|
clearInterval(patrolTimes.value) |
|
|
|
}) |
|
|
|
|
|
|
|
const onStartSelfTest = () => { |
|
|
|
if (props.checking) { |
|
|
|