Browse Source

功图量液梯度图,初始化调整

chenwen 11 months ago
parent
commit
cf8589772a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/components/ECStepLineChart.vue

+ 3 - 1
src/components/ECStepLineChart.vue

@@ -132,8 +132,10 @@
 	},{deep:true})
 	
 	watch(()=>props.title,(newTit,oldTit)=>{
+		if(!chartInstance){
+			return
+		}
 		let opt=chartInstance.getOption()
-		//console.log(opt)
 		opt.title[0].text=newTit
 		chartInstance.setOption(opt)
 	})