|
|
@@ -221,6 +221,10 @@ function showVideo(point_name = 'A') {
|
|
|
clientStore.ipc.on(icpList.camera.PreviewShow, async (event, result) => {
|
|
|
console.log('打开预览=====================')
|
|
|
console.log(result)
|
|
|
+ if (result.device_status === -1 && result.msg){
|
|
|
+ ElMessage.error(result.msg)
|
|
|
+ return;
|
|
|
+ }
|
|
|
clearPreviewInterval()
|
|
|
hideVideoTimer = setTimeout(() => {
|
|
|
interval = setInterval(() => {
|
|
|
@@ -242,6 +246,10 @@ async function hideVideo(point_name = 'A') {
|
|
|
clientStore.ipc.on(icpList.camera.PreviewHide, async (event, result) => {
|
|
|
console.log('关闭预览回调=====================')
|
|
|
console.log(result)
|
|
|
+ if (result.device_status === -1 && result.msg){
|
|
|
+ console.log(result.msg)
|
|
|
+ resolve(true)
|
|
|
+ }
|
|
|
isHidingVideo.value = false
|
|
|
// 如果有待执行的打开请求,执行它
|
|
|
if (pendingShowVideoPoint) {
|