From 88335bf57b7a4690b787bcdd65a78c038b852e4d Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 12 六月 2023 09:46:06 +0800
Subject: [PATCH] 案件上传图片和视频

---
 src/views/video/index.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/views/video/index.vue b/src/views/video/index.vue
index b30143a..13c9229 100644
--- a/src/views/video/index.vue
+++ b/src/views/video/index.vue
@@ -127,11 +127,11 @@
   mounted() {},
   methods: {
     loadVideo(item) {
-      if (item.platResourceId) {
+      if (item.code) {
         if (Hls.isSupported()) {
           var video = document.getElementById(item.id);
           var hls = new Hls();
-          videoPoint.getVideoPointUrl(item.platResourceId).then((res) => {
+          videoPoint.getVideoPointUrl(item.code).then((res) => {
             if (res.code === 0) {
               hls.loadSource(res.data);
               hls.attachMedia(video);
@@ -220,7 +220,7 @@
       });
     },
     create(item) {
-      if (item.code) {
+      if (item.platResourceId) {
         const DHWsInstance = DHWs.getInstance();
         this.ws = DHWsInstance;
         console.log(this.ws);

--
Gitblit v1.8.0