zhanghua
2022-12-13 cf9468626781bbb55ffd355d9c56c9111ae07062
优化
2个文件已修改
11 ■■■■■ 已修改文件
src/views/systemSetting/device/point/index.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/video/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemSetting/device/point/index.vue
@@ -80,7 +80,7 @@
      videoData: [],
      searchData: null,
      hls: null,
      videoList:[]
      videoList: [],
    };
  },
  methods: {
@@ -104,6 +104,7 @@
        .catch((err) => this.$message.error(err));
    },
    loadVideo(item) {
      if (item.platResourceId) {
      if (Hls.isSupported()) {
        var video = document.getElementById(item.id);
        var hls = new Hls();
@@ -128,6 +129,9 @@
          }
        });
      }
      } else {
        this.$message.error("暂无视频");
      }
    },
    selectedDepartment(data) {
      this.currentPage = 1;
@@ -142,8 +146,8 @@
    },
  },
  beforeDestroy(){
    videoList.forEach(element => {
      element.push()
    videoList.forEach((element) => {
      element.push();
    });
  },
};
src/views/video/index.vue
@@ -70,7 +70,6 @@
      <el-dialog
        :visible.sync="dialogCreate"
        title="查看视频"
        width="80%"
        v-show="dialogCreate"
        :before-close="handleClose2"
      >