Browse Source

修复其他页面会触发情绪大模型的查看历史记录方法。

songjie/feature-20250924120152-大财神功能开发分支
宋杰 1 day ago
parent
commit
3e8727b556
  1. 10
      src/views/homePage.vue

10
src/views/homePage.vue

@ -453,11 +453,8 @@ const enableInput = () => {
const handleHistorySelect = (stockData) => { const handleHistorySelect = (stockData) => {
console.log("接收到历史记录数据:", stockData); console.log("接收到历史记录数据:", stockData);
// AiEmotionAiEmotion
// if (activeTab.value !== 'AiEmotion') {
// setActiveTab('AiEmotion', 1);
// }
//
if (activeTab.value === 'AiEmotion') {
// addStock // addStock
nextTick(() => { nextTick(() => {
if (aiEmotionRef.value && aiEmotionRef.value.addStock) { if (aiEmotionRef.value && aiEmotionRef.value.addStock) {
@ -466,6 +463,9 @@ const handleHistorySelect = (stockData) => {
console.error("AiEmotion组件或addStock方法不可用"); console.error("AiEmotion组件或addStock方法不可用");
} }
}); });
} else {
console.log("历史记录选择仅在情绪大模型中有效");
}
}; };
// //

Loading…
Cancel
Save