|
@@ -257,9 +257,13 @@ var cmAiMixins = function() {
|
|
|
},
|
|
|
// 查询记录
|
|
|
async getChatHistory() {
|
|
|
- const data = await this.userNewChatHistory(this.chatHistoryParams)
|
|
|
- console.log('chatHistory', data)
|
|
|
- this.chatHistory = data
|
|
|
+ try {
|
|
|
+ const data = await this.userNewChatHistory(this.chatHistoryParams)
|
|
|
+ console.log('chatHistory', data)
|
|
|
+ this.chatHistory = data
|
|
|
+ } catch (error) {
|
|
|
+ console.log('Error history:', error);
|
|
|
+ }
|
|
|
},
|
|
|
// 查询详情
|
|
|
async handleChatDetail(chatId) {
|