补充观看教学视频路由跳转功能,检测页面微调
This commit is contained in:
@@ -148,6 +148,7 @@ import { useCheckStore } from '@/stores/modules/check'
|
||||
import { contrastTest, pauseTest, resumeTest, startPreTest } from '@/api/socket/socket'
|
||||
import { useUserStore } from '@/stores/modules/user'
|
||||
import { JwtUtil } from '@/utils/jwtUtil'
|
||||
import mittBus, { STOP_DETECTION_TIMER_EVENT } from '@/utils/mittBus'
|
||||
|
||||
const userStore = useUserStore()
|
||||
const checkStore = useCheckStore()
|
||||
@@ -165,6 +166,14 @@ const preTestStatus = ref('waiting') //预检测执行状态
|
||||
const TestStatus = ref('waiting') //正式检测执行状态
|
||||
const webMsgSend = ref() //webSocket推送的数据
|
||||
|
||||
const hideInitializingButton = () => {
|
||||
if (TestStatus.value === 'test_init') {
|
||||
TestStatus.value = 'waiting'
|
||||
}
|
||||
}
|
||||
|
||||
mittBus.on(STOP_DETECTION_TIMER_EVENT, hideInitializingButton)
|
||||
|
||||
const dialogTitle = ref('')
|
||||
const showComponent = ref(true)
|
||||
const preTestRef = ref<InstanceType<typeof ComparePreTest> | null>(null)
|
||||
@@ -187,6 +196,7 @@ onMounted(() => {
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
mittBus.off(STOP_DETECTION_TIMER_EVENT, hideInitializingButton)
|
||||
window.removeEventListener('resize', handleResize)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user