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

柱状图调整

parent b713b52a
...@@ -655,8 +655,17 @@ export default { ...@@ -655,8 +655,17 @@ export default {
this.$router.push({path: path, query: {code: code}}); this.$router.push({path: path, query: {code: code}});
}, },
resizeChart() { resizeChart() {
if (this.chart) { if(this.people){
this.chart.resize(); 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 { ...@@ -679,7 +688,7 @@ export default {
},500); },500);
}, },
beforeDestroy() { beforeDestroy() {
window.removeEventListener("resize", this.resizeChart);
}, },
watch:{ watch:{
countDown(n,o){ 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