Browse Source

fix: 修复右键弹出视频流不存在直接return 未知代码 后续建议删除

chauncey 1 year ago
parent
commit
8cad23bb61
1 changed files with 11 additions and 11 deletions
  1. 11 11
      src/views/map-config/mini-map/MapBase/KonvaMap.vue

+ 11 - 11
src/views/map-config/mini-map/MapBase/KonvaMap.vue

@@ -218,17 +218,17 @@ const handleStageClick = (e: any) => {
     // 判断是否为右键点击
     // 判断是否为右键点击
     if (e.evt.button === 2) {
     if (e.evt.button === 2) {
       lastClickedGroupId.value = parent.id();
       lastClickedGroupId.value = parent.id();
-      const clickedVideoUrl = props.filterData.find(
-        (item) => item.code === lastClickedGroupId.value,
-      );
-
-      const videoUrl = clickedVideoUrl.pushStreamDTO?.videoUrls?.pushstreamIpAbs
-      if (videoUrl) {
-        lastClickedVideoUrl.value = videoUrl;
-      } else {
-        ElMessage.error("视频地址不存在")
-        return;
-      }
+      // const clickedVideoUrl = props.filterData.find(
+      //   (item) => item.code === lastClickedGroupId.value,
+      // );
+
+      // const videoUrl = clickedVideoUrl.pushStreamDTO?.videoUrls?.pushstreamIpAbs
+      // if (videoUrl) {
+      //   lastClickedVideoUrl.value = videoUrl;
+      // } else {
+      //   ElMessage.error("视频地址不存在")
+      //   return;
+      // }
       isShow.value = false;
       isShow.value = false;
       posX.value = e.evt.offsetX + 20;
       posX.value = e.evt.offsetX + 20;
       posY.value = e.evt.offsetY;
       posY.value = e.evt.offsetY;