diff --git a/src/assets/img/AiEmotion/解码器.png b/src/assets/img/AiEmotion/解码器.png
new file mode 100644
index 0000000..dc871bc
Binary files /dev/null and b/src/assets/img/AiEmotion/解码器.png differ
diff --git a/src/views/AiEmotion.vue b/src/views/AiEmotion.vue
index 6163eaa..8f99b64 100644
--- a/src/views/AiEmotion.vue
+++ b/src/views/AiEmotion.vue
@@ -36,6 +36,8 @@
+
+
@@ -67,7 +69,7 @@ import { getReplyAPI } from '@/api/AiEmotionApi.js'; // 导入工作流接口方
import axios from 'axios';
import emotionDecod from '@/views/components/emotionDecod.vue'; // 导入情绪解码组件
import emotionalBottomRadar from '@/views/components/emotionalBottomRadar.vue'; // 导入情绪探底雷达图组件
-import emoEnergyConverter from '@/views/components/emotionalBottomRadar.vue'; // 导入情绪能量转化器组件
+import emoEnergyConverter from '@/views/components/emoEnergyConverter.vue'; // 导入情绪能量转化器组件
const emoEnergyConverterRef = ref(null)
@@ -169,6 +171,10 @@ async function fetchData(code, market) {
sender: 'ai',
text: `股票数据已成功获取: ${JSON.stringify(stockDataResponse.data)}`,
});
+ console.log('1111111111111111111111')
+ // 调用渲染图表的方法
+ renderCharts(stockDataResponse.data);
+ console.log('2222222222222222222222')
} else {
console.error('图表数据接口返回数据不完整');
messages.value.push({
@@ -190,7 +196,11 @@ function renderCharts(data) {
nextTick(() => {
// 渲染情绪能量转化器图表
if (emoEnergyConverterRef.value && data.QXNLZHQ) {
+ console.log('开始渲染情绪能量转化器图表');
+ console.log('KLine20:', data.KLine20);
+ console.log('QXNLZHQ:', data.QXNLZHQ);
emoEnergyConverterRef.value.initQXNLZHEcharts(data.KLine20, data.QXNLZHQ);
+ console.log('情绪能量转化器图表已渲染');
}
// 渲染情绪解码器图表
@@ -207,6 +217,18 @@ function renderCharts(data) {