tangning 3 months ago
parent
commit
fb74fc64d6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/view/case/records/index.vue

+ 4 - 1
src/view/case/records/index.vue

@@ -485,7 +485,7 @@
       title="AI识别平面图"
       width="1300px"
       align-center
-      @close="aiImgData.result = null;abort()"
+      @close="aiImgData.result = null;"
     >
     <div class="border" style="    width: 1300px;
     height: 1px;
@@ -664,6 +664,9 @@ const handleAI = async () => {
   try {
   // const res = await getAiByImage({imageUrl: imageUrl})
   chat('', item.params + item.paramContent).then(async stream => {
+    if(!aiImgShow.value){
+      abort()
+    }
     for await (const part of stream) {
         // chatHistory.value.at(idx).text += part.message.content;
         let tep_mesg = part.message.content;