|
@@ -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>
|