gemercheung 1 год назад
Родитель
Сommit
3badecde3f
2 измененных файлов с 6 добавлено и 0 удалено
  1. 1 0
      src/core/player/Player.js
  2. 5 0
      src/view/case/photos/index.vue

+ 1 - 0
src/core/player/Player.js

@@ -425,6 +425,7 @@ export default class Player {
     this.scene.emit("data", data);
   }
   load(type, data) {
+    // this.clear();
     if (type === 1) {
       console.log("data1", data);
       const { hor_activeEdges, hor_lines, hor_markers } = data;

+ 5 - 0
src/view/case/photos/index.vue

@@ -128,6 +128,11 @@ const changeList = async (list) => {
   const arr = [];
   newList.map((i) => arr.push(JSON.parse(JSON.stringify(i))));
   const type = sortType.value ? 2 : 1;
+  if (!loadedDrawData.value) {
+    const res = await getCaseImgTagData(caseId.value);
+    const { data } = res.data;
+    loadedDrawData.value = data;
+  }
 
   if (scene) {
     scene.load(arr, type, loadedDrawData.value || []);