diff --git a/src/pages/demo/chart/dynamicSize/index.vue b/src/pages/demo/chart/dynamicSize/index.vue index 87e385db..8f89b09b 100644 --- a/src/pages/demo/chart/dynamicSize/index.vue +++ b/src/pages/demo/chart/dynamicSize/index.vue @@ -153,13 +153,10 @@ export default { ready (ready) { if (ready) { this.syncData() + this.showInfo() } } }, - mounted () { - // 显示提示 - this.showInfo(); - }, methods: { // 显示提示 showInfo () { diff --git a/src/pages/demo/chart/index/index.vue b/src/pages/demo/chart/index/index.vue index f79cb50d..7b7e8cf7 100644 --- a/src/pages/demo/chart/index/index.vue +++ b/src/pages/demo/chart/index/index.vue @@ -124,10 +124,19 @@ export default { ready (ready) { if (ready) { this.syncData() + this.showInfo() } } }, methods: { + // 显示提示 + showInfo () { + this.$notify({ + title: '提示', + message: '点击卡片右上角的刷新按钮可以重新载入某个图表的数据', + duration: 10000 + }) + }, // 图表 mounted isReady (index) { this.chart[index].ready = true