Commit 88386740da1efabd096a46b838fb4d7268317633
1 parent
860fb62f
胶囊图不加载的问题
Showing
1 changed file
with
4 additions
and
3 deletions
src/views/bigscreenDesigner/designer/widget/bar/widgetCapsuleChart.vue
| ... | ... | @@ -115,9 +115,10 @@ export default { |
| 115 | 115 | getEchartData(val) { |
| 116 | 116 | const data = this.queryEchartsData(val); |
| 117 | 117 | data.then(res => { |
| 118 | - this.options.data = res; | |
| 119 | - // console.log("WidgetCapsuleChart2222====",res); | |
| 120 | - // this.staticDataFn(res); | |
| 118 | + this.options = { | |
| 119 | + ...this.options, | |
| 120 | + data: res | |
| 121 | + }; | |
| 121 | 122 | }); |
| 122 | 123 | } |
| 123 | 124 | } | ... | ... |