zhengjinyi преди 8 месеца
родител
ревизия
b4489ecc79
променени са 2 файла, в които са добавени 14 реда и са изтрити 3 реда
  1. 7 0
      src/main/resources/static/css/base/base.pc.css
  2. 7 3
      src/main/resources/static/js/mixins/cmAiMixins.js

+ 7 - 0
src/main/resources/static/css/base/base.pc.css

@@ -668,6 +668,13 @@ iframe{width:320px !important;height: 280px !important}
 }
 .cm_ai_container_records .cm_ai_records_user .name{
     margin-left: 8px;
+    -o-text-overflow: ellipsis;
+    text-overflow: ellipsis;
+    display: -webkit-box;
+    word-break: break-all;
+    -webkit-box-orient: vertical;
+    -webkit-line-clamp: 1;
+    overflow: hidden;
 }
 .cm_ai_container_main{
     width: calc(100% - 240px);

+ 7 - 3
src/main/resources/static/js/mixins/cmAiMixins.js

@@ -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) {