Commit 754caaf3 by 杨明

fixed

1 parent ebd88c2d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 14:07:44 * @Date: 2023-09-14 14:07:44
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-10-08 16:49:07 * @LastEditTime: 2023-10-09 18:48:25
* @FilePath: \scrm-micro-home\src\components\lineChart\index.vue * @FilePath: \scrm-micro-home\src\components\lineChart\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -42,12 +42,14 @@ export default { ...@@ -42,12 +42,14 @@ export default {
this.lineOptions = getLineOptions[this.functionStr](this.lineList) this.lineOptions = getLineOptions[this.functionStr](this.lineList)
this.chartBindEvent() this.chartBindEvent()
}, },
immediate: true,
deep: true deep: true
} }
}, },
mounted() { mounted() {
this.lineDom = document.getElementById(this.domId) this.lineDom = document.getElementById(this.domId)
this[this.domId] = echarts.init(this.lineDom) this[this.domId] = echarts.init(this.lineDom)
this[this.domId].resize()
window.addEventListener('resize', this[this.domId].resize) window.addEventListener('resize', this[this.domId].resize)
}, },
beforeCreate() { beforeCreate() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!