Selaa lähdekoodia

切换指标时,重置图表的选项

cxmo 1 vuosi sitten
vanhempi
commit
e2f744af00

+ 5 - 1
src/views/dataEntry_manage/databaseComponents/chartTrendRender.vue

@@ -131,7 +131,11 @@ export default {
 	},
 	watch: {
 		edbid(newval){
-			newval && this.getDataByPath()
+			if(newval){
+				this.chart_type = 1
+				this.isShowOnyearData = false
+				this.getDataByPath()
+			}
 		}
 	},
 	data () {