Quellcode durchsuchen

fix: 放开对话结束后的操作按钮组

zhupei vor 1 Jahr
Ursprung
Commit
c7314c7c00
2 geänderte Dateien mit 9 neuen und 4 gelöschten Zeilen
  1. 6 2
      src/components/DialogWrap.vue
  2. 3 2
      src/views/Home.vue

+ 6 - 2
src/components/DialogWrap.vue

@@ -217,7 +217,7 @@
               <span>{{ item.other.token }}</span>
             </p>
             <p v-else></p>
-            <div v-if="show_info_btns">
+            <div v-if="chat_type !== 'huitu'">
               <a-tooltip content="重新生成">
                 <p @click="reQuestion(item.question)" :class="[readonly ? 'disabled' : '']">
                   <img src="@/assets/icons/refresh.png" width="15" />
@@ -332,6 +332,9 @@ export default defineComponent({
      */
     const show_info_btns = ref(false);
 
+    const chat_type = props.type; // 对话的类型
+
+
     /**
      * 初始化临时历史记录
      * 在对话过程中,消息记录是一条一条的呈现
@@ -941,7 +944,8 @@ export default defineComponent({
       openDocument,
       // openDocuementPage,
 
-      show_info_btns
+      show_info_btns,
+      chat_type
     };
   }
 });

+ 3 - 2
src/views/Home.vue

@@ -235,7 +235,7 @@ export default defineComponent({
     const historyMode = ref(false);
     const dialogList = ref([]);
 
-    const selectId = ref("");
+    const selectId = ref(""); // 当前选择的 agent_id 或者 历史记录的 ID
     const real_agent_id = ref(""); // 实际的agent_id,此值仅在 点击侧边栏具体功能时更改,例如点击 知识问答、文档智能按钮时更改
     const agentIds = ref([]); // agent ID的列表
 
@@ -244,7 +244,8 @@ export default defineComponent({
     const variables = ref([]);
     const textValue = ref("");
     const parseStatus = ref(false);
-    const maxLength = ref(6000);
+    const maxLength = ref(6000); // 允许输入的最大长度
+
     let reportData = {};
     let agents = {}