:fix: chart data will not displayed when first enter

This commit is contained in:
Zeeland 2022-11-01 01:49:32 +08:00
parent 220ee2680d
commit a6f197930e

View File

@ -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>