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 {