Commit 495433a4 by liangjianmin

bug

parent a4b2d9cb
Showing with 6 additions and 10 deletions
...@@ -252,18 +252,8 @@ ...@@ -252,18 +252,8 @@
} }
}; };
}, },
watch: {},
created() {
},
mounted() { mounted() {
var self = this;
this.getData(); this.getData();
window.onresize = function () {
console.log('test')
self.getData();
};
}, },
methods: { methods: {
getData() { getData() {
...@@ -344,6 +334,12 @@ ...@@ -344,6 +334,12 @@
myChart.setOption(option); myChart.setOption(option);
myChart1.setOption(option); myChart1.setOption(option);
myChart2.setOption(option1); myChart2.setOption(option1);
window.onresize = function () {
myChart.resize();
myChart1.resize();
myChart2.resize();
};
} }
}, },
components: { components: {
......
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 sign in to comment