From e5d499ae6a4e6b320f71c49987b76cc11f6bc1e4 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 28 十月 2025 14:13:10 +0800
Subject: [PATCH] 首页问题
---
src/layout/components/Navbar.vue | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 1f814e8..6fca5d2 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -39,14 +39,14 @@
</div>
<div class="button-container">
- <el-button type="primary" @click="toScreen">鍙鍖栧ぇ灞�</el-button>
+ <el-button v-if="roles.includes('admin') || roles.includes('county_leader') || roles.includes('city_leader')" type="primary" @click="toScreen" size="small">鍙鍖栧ぇ灞�</el-button>
</div>
- <div class="button-container">
- <el-button type="primary" @click="toSystemB">璺宠浆B绯荤粺</el-button>
- </div>
- <div class="button-container">
- <el-button type="primary" @click="toSystemA">璺宠浆A绯荤粺</el-button>
- </div>
+<!-- <div class="button-container">-->
+<!-- <el-button type="primary" @click="toSystemB" size="small">璺宠浆B绯荤粺</el-button>-->
+<!-- </div>-->
+<!-- <div class="button-container">-->
+<!-- <el-button type="primary" @click="toSystemA" size="small">璺宠浆A绯荤粺</el-button>-->
+<!-- </div>-->
</div>
</template>
@@ -76,7 +76,8 @@
...mapGetters([
'sidebar',
'avatar',
- 'device'
+ 'device',
+ 'roles'
]),
setting: {
get() {
--
Gitblit v1.8.0