Merge pull request #59 from Undertone0809/chart-show-patch
fix: chart data will not displayed when first enter
This commit is contained in:
commit
2878d8eeee
@ -593,8 +593,11 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$store.commit("setActiveMenu", "admin-dashboard");
|
this.$store.commit("setActiveMenu", "admin-dashboard");
|
||||||
|
setTimeout(() => {
|
||||||
this.initLastThirtyDaysCharts(this.lastThirtyDays)
|
this.initLastThirtyDaysCharts(this.lastThirtyDays)
|
||||||
this.initHistoryCharts(this.history)
|
this.initHistoryCharts(this.history)
|
||||||
|
}, 500);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -155,7 +155,9 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$store.commit("setActiveMenu", "open-data");
|
this.$store.commit("setActiveMenu", "open-data");
|
||||||
|
setTimeout(() => {
|
||||||
this.initLastThirtyDaysCharts(this.lastThirtyDays)
|
this.initLastThirtyDaysCharts(this.lastThirtyDays)
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user