From 982747f85c88ce975ef8f24d275fe84e8949ebb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Thu, 9 Oct 2025 10:18:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=B1=E5=BA=A6=E5=A4=A7=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95=E5=AE=9E=E6=97=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/HistoryRecord.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/views/components/HistoryRecord.vue b/src/views/components/HistoryRecord.vue index 89fd5c1..85d317d 100644 --- a/src/views/components/HistoryRecord.vue +++ b/src/views/components/HistoryRecord.vue @@ -796,6 +796,7 @@ const handleFeedbackClick = () => { emit("showFeedback"); }; +// 监听夺宝奇兵和情绪大模型的搜索记录状态 watch( () => chatStore.searchRecord, (newVal) => { @@ -809,6 +810,23 @@ watch( } ); +// 监听深度九大模型的搜索记录状态 +import { useDeepNineStore } from "@/store/deepNine.js"; +const deepNineStore = useDeepNineStore(); + +watch( + () => deepNineStore.searchRecord, + (newVal) => { + if (deepNineStore.searchRecord) { + getHistoryList({ + model: props.currentType == "deepNine" ? 3 : props.currentType == "AIchat" ? 1 : 2, + token: localStorage.getItem("localToken"), + }); + deepNineStore.searchRecord = false; + } + } +); + // 暴露方法和状态给父组件 defineExpose({ isCollapsed,