tangning 7 months ago
parent
commit
d0fbd70ed4
3 changed files with 4 additions and 2 deletions
  1. 1 1
      src/components/viewImg/index.vue
  2. 1 1
      src/store/case.ts
  3. 2 0
      src/view/layout/index.vue

+ 1 - 1
src/components/viewImg/index.vue

@@ -57,7 +57,7 @@
       </div>
     </div>
     <el-dialog v-model="visible.show"  title="查看视频" width="500">
-      <video ref="videoPlayer" style="width: 100%; height: 300px;" controls class="video-js">
+      <video :src="visible.src" v-if="visible.show" ref="videoPlayer" style="width: 100%; height: 300px;" controls class="video-js">
         <source :src="visible.src"  type="video/mp4">
       </video>
   </el-dialog>

+ 1 - 1
src/store/case.ts

@@ -291,7 +291,7 @@ export const getUrlSrc = (item, caseId) => {
     5: `/mega/index.html?m=${item.num}`,
     6: `/spg.html?m=${item.num}`,
     7: `/spg.html?m=${item.num}`,
-    99: `/code/index.html?caseId=${caseId}&single#/show`,
+    99: `/code/index.html?caseId=${caseId}#/show`,
   };
   return SceneType[item.type];
 }

+ 2 - 0
src/view/layout/index.vue

@@ -89,6 +89,8 @@ const init = async () => {
   sceneList.value = listss;
   if(listss.length){
     sceneList.value.unshift({ id: -1, type: 99, name: '多元融合' });
+    let url = getUrlSrc({ id: 0 }, caseId.value)
+    sceneURL.value = url;
   }
   console.log('init', modeList.value, sceneList.value, modeList.value.length);
   handleCommand()