From 382bb1d0997ec29459f3aab2ee554017ef7a8c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9D=A8?= <1711467488@qq.com> Date: Mon, 26 Feb 2018 20:53:02 +0800 Subject: [PATCH] no message Former-commit-id: 5d636564a890e465ab00be6024ecf34416ac1f2f Former-commit-id: 1a766623229d773e2ef298887f4b0d1b42bd9e14 Former-commit-id: d6ecb32bc241fceabd4461da63cb8df0e49dddd5 --- src/pages/demo/chart/dynamicSize/index.vue | 5 +---- src/pages/demo/chart/index/index.vue | 9 +++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) 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