浏览代码

首页修改

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