diff --git a/src/views/components/HistoryRecord.vue b/src/views/components/HistoryRecord.vue index e0d0cbd..a7188df 100644 --- a/src/views/components/HistoryRecord.vue +++ b/src/views/components/HistoryRecord.vue @@ -671,7 +671,7 @@ const selectRecord = async (record) => { chatStore.dbqbClickRecord = historyData.value; // 构造股票数据对象,保持与现有结构一致 const stockData = { - queryText: record.stockCode || record.stockName || "", // 使用记录中的股票代码或名称作为查询文本 + queryText: record.keyword || record.stockCode || record.stockName || "", // 使用记录中的keyword字段作为查询文本 stockInfo: { name: result.data.stockData?.stockName || record.stockName || "", code: record.stockCode || "", @@ -679,7 +679,7 @@ const selectRecord = async (record) => { }, apiData: result.data.stockData || {}, // 图表数据 conclusionData: result.data.wokeFlowData?.One || {}, // 场景应用的结论和音频 - timestamp: new Date().toISOString(), + timestamp: record.createdTime || new Date().toISOString(), // 使用历史记录的createdTime字段 }; // 通过emit将数据传递给父组件