no message
Former-commit-id: ddf32a1c27719b3bc0f35216c885c927fc716ae3 Former-commit-id: 255da9f58481583058be881592e637fa1c98606d Former-commit-id: c891fe042d3256edf4c183b99f501114354453d5
This commit is contained in:
@@ -70,11 +70,9 @@ export default {
|
|||||||
changeData () {
|
changeData () {
|
||||||
if (this.chart) {
|
if (this.chart) {
|
||||||
// 已经初始化过图表 更新数据
|
// 已经初始化过图表 更新数据
|
||||||
console.log(1)
|
|
||||||
this.chart.changeData(this.dvMaker())
|
this.chart.changeData(this.dvMaker())
|
||||||
} else {
|
} else {
|
||||||
// 没有图表 新创建一个实例
|
// 没有图表 新创建一个实例
|
||||||
console.log(2)
|
|
||||||
this.initHandler()
|
this.initHandler()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import G2 from '@antv/g2'
|
import G2 from '@antv/g2'
|
||||||
import * as DataSet from '@antv/data-set'
|
import * as DataSet from '@antv/data-set'
|
||||||
|
|
||||||
// 关闭 G2 的体验改进计划打点请求
|
// 关闭 G2 的体验改进计划打点请求
|
||||||
G2.track(false)
|
G2.track(false)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user