Browse Source

首页修改

zhengjinyi 8 months ago
parent
commit
b4489ecc79

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