tangning hai 3 meses
pai
achega
b052ff9f07
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/view/case/records/index.vue

+ 3 - 2
src/view/case/records/index.vue

@@ -485,7 +485,7 @@
       title="AI识别平面图"
       width="1300px"
       align-center
-      @close="aiImgData.result = null"
+      @close="aiImgData.result = null;abort()"
     >
     <div class="border" style="    width: 1300px;
     height: 1px;
@@ -648,7 +648,8 @@ const handleCopy = () => {
 const handleShowAi = async () => {
   const list = await getFloorList(caseId.value)
   aiImgData.value.list = list.filter((i) => i.url);
-  aiImgData.value.src = list[0]?.url;
+  aiImgData.value.src = aiImgData.value.src?aiImgData.value.src:list[0]?.url;
+  aiImgData.value.loading = false;
   aiImgShow.value = true;
   isOption.value = false;
 }