From 224166c4ba68826b121e53d59f30bde9a8fdc645 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 09:13:08 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E6=BC=94=E7=A4=BA=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2isReady?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Former-commit-id: 06a63a38a89b5008df61178d9b2f8572b10042f3
Former-commit-id: 56712463fc6f9b65f3faa3696545f4725b350861
Former-commit-id: a238a08e0da6062a95e3dab29821867eff19c133
---
src/pages/demo/chart/index/index.vue | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/pages/demo/chart/index/index.vue b/src/pages/demo/chart/index/index.vue
index 59fcea76..d0292bf1 100644
--- a/src/pages/demo/chart/index/index.vue
+++ b/src/pages/demo/chart/index/index.vue
@@ -4,49 +4,49 @@
@@ -126,6 +126,10 @@ export default {
}
},
methods: {
+ // 图表 mounted
+ isReady (index) {
+ this.chart[index].ready = true
+ },
// 请求图表数据
syncData () {
this.$axios.all(this.chart.map(e => this.$axios.post(e.api.url, e.api.data)))