zhuliu 3 月之前
父节点
当前提交
8dd49ac7a8
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/AITools/OADefense/OADefense1.vue

+ 3 - 2
src/views/AITools/OADefense/OADefense1.vue

@@ -254,6 +254,7 @@ export default {
 
             this.$api.updateConfessionSession(params).then(response=>{
                 if(response.code == 200){
+                    this.reLoadSearch = true
                     this.queryConfessionSession()
                     this.getResult()
                 }
@@ -279,7 +280,6 @@ export default {
                     }else{
                         obj = this.confessionSessionList[0]
                     }
-                    console.log(this.currentConversation,obj)
                     if(obj){
                         this.changeConversation(obj,true)
                     }
@@ -386,7 +386,7 @@ export default {
       changeConversation(obj,sign){
         if(obj.id == this.currentConversation.id){
             this.currentConversation = obj
-            if(sign){
+            if(sign && !this.reLoadSearch){
                 //获取当前会话id
                 this.chat_id = obj.conversationId
                 this.$set(this,'current_guid',this.notice_file.guid)
@@ -394,6 +394,7 @@ export default {
                 this.confession = obj.systemFile || {}
                 this.$set(this,'notice_file',JSON.parse(JSON.stringify(this.confession)))
                 this.$set(this,'current_guid',this.notice_file.guid)
+                this.getOption()
             }
           return
         }