瀏覽代碼

对比分析适配和重新生成数据

SanHQin 10 月之前
父節點
當前提交
c6dfee8c8b

+ 4 - 2
src/components/pages/contrastObservation/component/chart.vue

@@ -59,7 +59,6 @@ export default {
 	},
 	watch:{
 		data(){
-			console.log("修改了")
 			this.getChartData();
 		}
 	},
@@ -73,6 +72,9 @@ export default {
 	},
 	mounted() {
 		this.getChartData();
+		window.addEventListener("resize",()=>{
+			this.chartObj.resize();
+		})
 	},
 };
 </script>
@@ -81,6 +83,6 @@ export default {
 .chart {
 	max-width: 100%;
 	width: 100%;
-	height: 550px;
+	height: 100%;
 }
 </style>

文件差異過大導致無法顯示
+ 2 - 11
src/components/pages/contrastObservation/index.vue


部分文件因文件數量過多而無法顯示