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