|
@@ -1283,16 +1283,16 @@ export default defineComponent({
|
|
|
|
|
|
const refreshChart = _.debounce(async () => {
|
|
|
loading.value = true;
|
|
|
- let Ret=null
|
|
|
+ let res: any=null
|
|
|
if(state.chartInfo.Source === 1){
|
|
|
- Ret=await ChartApi.refreshChart({UniqueCode: state.chartInfo.UniqueCode})
|
|
|
+ res=await ChartApi.refreshChart({UniqueCode: state.chartInfo.UniqueCode})
|
|
|
}else if(state.chartInfo.Source === 2){
|
|
|
- Ret=await ChartApi.refreshCommordityChart({UniqueCode: state.chartInfo.UniqueCode});
|
|
|
+ res=await ChartApi.refreshCommordityChart({UniqueCode: state.chartInfo.UniqueCode});
|
|
|
}else if(state.chartInfo.Source === 3){
|
|
|
- Ret=await ChartApi.refreshRelevanceChart({UniqueCode: state.chartInfo.UniqueCode});
|
|
|
+ res=await ChartApi.refreshRelevanceChart({UniqueCode: state.chartInfo.UniqueCode});
|
|
|
}
|
|
|
loading.value = false;
|
|
|
- Ret === 200 && getChartInfo('refresh');
|
|
|
+ res.Ret === 200 && getChartInfo('refresh');
|
|
|
},400)
|
|
|
|
|
|
return {
|