Forráskód Böngészése

中间过程提示

zhuliu 3 hónapja
szülő
commit
cf5913c357

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 38 - 6
src/views/AITools/OADefense/OADefense1.vue


+ 16 - 0
src/views/AITools/OADefense/mixins/index1.js

@@ -62,6 +62,8 @@ export default {
                 modifyFileGuid:this.relevant_file.modify_file.guid
             }
             this.loading = true
+            this.loading_text = ''
+            var loading_text = ''
             this.result = null
             const response = await fetch('/api/xiaoshi/dify/sendOADefense', {
                 method: 'POST',
@@ -101,8 +103,15 @@ export default {
                                     this.$refs.errorTip.open(answer_json)
                                 }else if(answer_json.code == 200){
                                     this.queryConfessionSession(false,false,true) 
+                                }else if(answer_json.code == 1003){
+                                    this.loading_text = answer_json.data
+                                    loading_text = answer_json.data
                                 }
                             }catch(e){
+                                if(loading_text!=''){
+                                    loading_text = ''
+                                    this.loading_text = ''
+                                }
                                 this.result += answer;
                             }
                             
@@ -130,8 +139,15 @@ export default {
                                                 this.result = answer_json
                                             }else if(answer_json.code == 200){
                                                 this.queryConfessionSession(false,false,true) 
+                                            }else if(answer_json.code == 1003){
+                                                this.loading_text = answer_json.data
+                                                loading_text = answer_json.data
                                             }
                                         }catch(e){
+                                            if(loading_text!=''){
+                                                loading_text = ''
+                                                this.loading_text = ''
+                                            }
                                             this.result += answer;
                                         }
                                     }else if(json.event == 'message_replace'){

+ 1 - 2
src/views/AITools/components/conversationRecords.vue

@@ -86,8 +86,7 @@ export default {
       if(obj.id == this.currentConversation.id){
         return
       }
-      this.currentConversation = obj
-      this.chat_id = obj.conversationId
+      // this.currentConversation = obj
       this.$emit('changeConversation',obj)
     },
     //下拉菜单的显示与隐藏