no message
Former-commit-id: 0cdf814303614e8577d56874f9384888b1c9e613 Former-commit-id: e676ef372115ff3ffebe667096553dc506f5c798 Former-commit-id: 0bb4e736a85e70b4d741d9256d3ee2c1b3fe9019
This commit is contained in:
@@ -38,9 +38,11 @@ export default {
|
||||
changeData () {
|
||||
if (this.chart) {
|
||||
// 已经初始化过图表 更新数据
|
||||
this.$log('changeData', '已经初始化过图表 只更新数据')
|
||||
this.chart.changeData(this.data)
|
||||
} else {
|
||||
// 没有图表 新创建一个实例
|
||||
this.$log('changeData', '没有图表 新创建一个实例')
|
||||
this.init()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user