From c6872cae30dcb80f78a3f2d1210c151c78afbec9 Mon Sep 17 00:00:00 2001 From: Phoenix <64720302+Concur-max@users.noreply.github.com> Date: Fri, 23 May 2025 09:56:52 +0800 Subject: [PATCH] 12 --- src/store/stock-quote/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/store/stock-quote/index.js b/src/store/stock-quote/index.js index 4ae5b6c..d4d514d 100644 --- a/src/store/stock-quote/index.js +++ b/src/store/stock-quote/index.js @@ -6,10 +6,11 @@ export const useStockQuote = createGlobalState(() => { const getStockQuate= async()=>{ const res = await axios.post('http://saas-test.szjixun.cn/api/chart/forward/test') console.log('res',res); - stockQuote.value.Open=res.data.nodes?.[2]?.data?.[10] - stockQuote.value.Volume=res.data.nodes?.[1]?.data?.[20] + stockQuote.value.Volume=res.data.nodes?.[1]?.data?.[21] stockQuote.value.DayRange=[res.data.nodes?.[2]?.data?.[10],res.data.nodes?.[2]?.data?.[11]] + stockQuote.value.WeekRange=[res.data.nodes?.[2]?.data?.[31],res.data.nodes?.[1]?.data?.[30]] + console.log('stockQuote.value',stockQuote.value); } return {