Browse Source

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

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

26
src/views/homePage.vue

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

Loading…
Cancel
Save