|
|
@ -536,7 +536,13 @@ const check = async () => { |
|
|
|
if (isCameraOpen.value) { |
|
|
|
websocketsend(getCharacterRecognitionResult) |
|
|
|
} else { |
|
|
|
MessagePlugin('error', { content: '请确保相机处于开机状态' }) |
|
|
|
setTimeout(() => { |
|
|
|
if (isCameraOpen.value) { |
|
|
|
websocketsend(getCharacterRecognitionResult) |
|
|
|
} else { |
|
|
|
MessagePlugin('error', { content: '请确保相机处于开机状态' }) |
|
|
|
} |
|
|
|
}, 1000) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -544,6 +550,8 @@ onMounted(async () => { |
|
|
|
websocket.value = new socket() |
|
|
|
websocket.value.WebSocketSet(getSocketdata) |
|
|
|
getInitData() |
|
|
|
// 刚进入页面需要检测相机是否启动 |
|
|
|
websocketsend(getCameraState) |
|
|
|
}) |
|
|
|
|
|
|
|
const catCurrentTaskDetail = () => { |
|
|
|