Bläddra i källkod

feat: 完善历史对话

zhangyuhan 5 månader sedan
förälder
incheckning
776b322c25
1 ändrade filer med 9 tillägg och 2 borttagningar
  1. 9 2
      apps/mobile/src/views/ai-search/index.vue

+ 9 - 2
apps/mobile/src/views/ai-search/index.vue

@@ -46,7 +46,7 @@ function onSelectRightAction(action) {
 }
 
 const historyModel = ref({
-  show: true,
+  show: false,
   loading: false,
   list: []
 })
@@ -1023,7 +1023,11 @@ function doMoreLike() {
     >
       <div class="history-list-header">历史对话</div>
       <div class="history-list-container" v-if="historyListLabel.length > 0">
-        <div v-for="(label, index) in historyListLabel" :key="index">
+        <div
+          class="history-item-container"
+          v-for="(label, index) in historyListLabel"
+          :key="index"
+        >
           <div class="history-list--time">{{ label }}</div>
           <div
             class="history-list--item"
@@ -1437,6 +1441,9 @@ function doMoreLike() {
     }
     .history-list-container {
       padding: 12px;
+      .history-item-container {
+        margin-bottom: 12px;
+      }
       .history-list--time {
         color: rgba(155, 156, 163, 1);
         font-size: 14px;