diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index fd378fe1..beb5954f 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -1666,7 +1666,7 @@ const videoShowMsg = (index) => { itemData = selectedList.value[index] } let msg = '请申请后在我的申请中预览视频!' - if ((itemData && itemData.status !== 1) || (rowClickData.value && rowClickData.value.status !== 1)) { + if ((itemData && itemData.status != 1) || (rowClickData.value && rowClickData.value.status != 1)) { msg = '当前视频离线不可预览!' } else { msg = '请申请后在我的申请中预览视频!' diff --git a/front/src/views/personalCenter/components/AbilityApplication.vue b/front/src/views/personalCenter/components/AbilityApplication.vue index 11567292..3a75af0e 100644 --- a/front/src/views/personalCenter/components/AbilityApplication.vue +++ b/front/src/views/personalCenter/components/AbilityApplication.vue @@ -187,7 +187,7 @@ 视频预览 @@ -440,6 +440,9 @@ // 视频预览 const openVideo = (item) => { console.log('打开视频', item) + if(item && item.status != 1) { + return message.error('当前视频离线不可预览!') + } const param = { key: item.cameraId, }