|
@ -796,6 +796,7 @@ const handleFeedbackClick = () => { |
|
|
emit("showFeedback"); |
|
|
emit("showFeedback"); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// 监听夺宝奇兵和情绪大模型的搜索记录状态 |
|
|
watch( |
|
|
watch( |
|
|
() => chatStore.searchRecord, |
|
|
() => chatStore.searchRecord, |
|
|
(newVal) => { |
|
|
(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({ |
|
|
defineExpose({ |
|
|
isCollapsed, |
|
|
isCollapsed, |
|
|