|
@@ -455,10 +455,11 @@ async function handleSwitchChart(type){
|
|
|
item=index===chartSortListData.value.length-1?chartSortListData.value[0]:chartSortListData.value[index+1]
|
|
|
}
|
|
|
//切换前重置chartState
|
|
|
- initChartState(item)
|
|
|
+
|
|
|
routeQueryData.id=item.ChartInfoId
|
|
|
routeQueryData.chartType=item.ChartType
|
|
|
routeQueryData.chartClassifyId=item.ChartClassifyId
|
|
|
+ initChartState({...item,...routeQueryData})
|
|
|
getChartDetail('init')
|
|
|
}
|
|
|
function initChartState(data){
|