Browse Source

只存储新股票到stockList中;

master
宋杰 5 days ago
parent
commit
2497cc3b0b
  1. 14
      src/store/emotion.ts

14
src/store/emotion.ts

@ -68,13 +68,13 @@ export const useEmotionStore = defineStore('emotion', {
} }
// 同时添加到历史记录 // 同时添加到历史记录
this.addHistory({
queryText: stockData.queryText,
stockInfo: stockData.stockInfo,
apiData: stockData.apiData,
conclusionData: stockData.conclusionData,
timestamp: stockData.timestamp
});
// this.addHistory({
// queryText: stockData.queryText,
// stockInfo: stockData.stockInfo,
// apiData: stockData.apiData,
// conclusionData: stockData.conclusionData,
// timestamp: stockData.timestamp
// });
}, },
// 切换股票 // 切换股票
switchStock(index: number) { switchStock(index: number) {

Loading…
Cancel
Save