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