|
@@ -72,6 +72,7 @@ var cmAiMixins = function () {
|
|
|
},
|
|
|
// 发送按钮点击事件
|
|
|
handleAskQuestion(){
|
|
|
+ const _this = this;
|
|
|
if(!globalUserData){
|
|
|
window.location.href = '/login.html'
|
|
|
return
|
|
@@ -140,7 +141,7 @@ var cmAiMixins = function () {
|
|
|
}else{
|
|
|
_this.handleGetUserSecondChat(contentHtml,answerContent)
|
|
|
}
|
|
|
- },250)
|
|
|
+ },500)
|
|
|
},
|
|
|
// 初次调用
|
|
|
async handleGetUserNewChats(contentHtml,answerContent){
|
|
@@ -149,7 +150,7 @@ var cmAiMixins = function () {
|
|
|
const data = await this.getUserNewChats(this.chatParams)
|
|
|
this.probeChatId = data.chatId
|
|
|
this.handleResponseHtml(data,contentHtml,answerContent)
|
|
|
- this.getChatHistory()
|
|
|
+ await this.getChatHistory()
|
|
|
} catch (error) {
|
|
|
console.error('Error fetching new chats:', error);
|
|
|
}
|