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");
|
||||||
this.initLastThirtyDaysCharts(this.lastThirtyDays)
|
setTimeout(() => {
|
||||||
this.initHistoryCharts(this.history)
|
this.initLastThirtyDaysCharts(this.lastThirtyDays)
|
||||||
|
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");
|
||||||
this.initLastThirtyDaysCharts(this.lastThirtyDays)
|
setTimeout(() => {
|
||||||
|
this.initLastThirtyDaysCharts(this.lastThirtyDays)
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user