Commit 21fd47d2 authored by 谢章伟's avatar 谢章伟

柱状图调整

parent b713b52a
......@@ -655,8 +655,17 @@ export default {
this.$router.push({path: path, query: {code: code}});
},
resizeChart() {
if (this.chart) {
this.chart.resize();
if(this.people){
this.people.resize();
}
if(this.car){
this.car.resize();
}
if(this.ship){
this.ship.resize();
}
if(this.train){
this.train.resize();
}
}
},
......@@ -679,7 +688,7 @@ export default {
},500);
},
beforeDestroy() {
window.removeEventListener("resize", this.resizeChart);
},
watch:{
countDown(n,o){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment