优化数据看板

This commit is contained in:
刘祥超
2023-10-30 16:44:01 +08:00
parent aeebf55e60
commit b56ccc7cef
14 changed files with 136 additions and 22 deletions

View File

@@ -34,6 +34,14 @@ Vue.component("traffic-map-box", {
},
methods: {
render: function () {
if (this.$el.offsetWidth < 300) {
let that = this
setTimeout(function () {
that.render()
}, 100)
return
}
this.chart = teaweb.initChart(document.getElementById("traffic-map-box"));
let that = this
this.chart.setOption({