1
0
tangning 12 tuntia sitten
vanhempi
commit
95a5aba31e
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      src/view/material/sceneImg.vue

+ 3 - 1
src/view/material/sceneImg.vue

@@ -734,7 +734,8 @@ function getList(refresh = false) {
       }
     })
     if (active1.value == "照片卷" && casePhotoList.value && casePhotoList.value.length) {
-      handlItem2(res[0]);
+      let item =  res.find((ele) => ele.id == casePhotoItem.value.id) || res[0];
+      handlItem2(item);
     }
   });
   updateByTreeFileLists(caseId.value).then((res) => {
@@ -834,6 +835,7 @@ async function handleAdd() {
 const handleClick = (a) => {
   let { paneName, childrenListvalue } = a;
   let newImgsrcList = [];
+  casePhotoItem.value.id = "";
   let index = list.value.findIndex((item) => item.filesTypeName == paneName);
   let childrenLists = list.value[index].childrenList;
   if (childrenListvalue && show.value) {