feat(dashboard): dashboard visible after getRole

This commit is contained in:
woody 2025-05-13 11:09:48 +08:00
parent 0d6e8d0d2a
commit 74c2c3577e
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="summary-dashboard">
<div v-show="visible" class="summary-dashboard">
<topBar
v-if="topList.length > 0 && userInfo.userType != 9"
:top-list="topList"
@ -144,11 +144,13 @@ export default {
dailyPerformance: {},
monthlyPerformance: {},
defaultTabItem: 'summaryDashboard',
userInfo: {}
userInfo: {},
visible: false
}
},
mounted() {
this.getRoles().then(() => {
this.visible = true
this.getMemberSummary()
this.getDailyPerformance()
this.getMonthlyPerformance()