no message

Former-commit-id: efb0083854f8f161bb59330e5a9812b25d27e0b5
Former-commit-id: ef916981e982c57dcd6044f16390b684523c7779
Former-commit-id: 32408dd3dfd9f0600323f4a49c6c285f9fc63f16
This commit is contained in:
李杨
2018-02-26 09:53:52 +08:00
parent ae7ba21e14
commit 2d5362cc75
2 changed files with 4 additions and 0 deletions

View File

@@ -143,11 +143,13 @@ export default {
}
},
computed: {
// 所有的图表已经 mounted
ready () {
return !this.chart.find(e => !e.ready)
}
},
watch: {
// 在所有的图表 mounted 后加载数据
ready (ready) {
if (ready) {
this.syncData()

View File

@@ -114,11 +114,13 @@ export default {
}
},
computed: {
// 所有的图表已经 mounted
ready () {
return !this.chart.find(e => !e.ready)
}
},
watch: {
// 在所有的图表 mounted 后加载数据
ready (ready) {
if (ready) {
this.syncData()