fix: 自测问题修复。

This commit is contained in:
tianyongbao
2026-02-06 20:58:16 +08:00
parent 7dee94fbc8
commit 9be9653818
2 changed files with 8 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
<!-- <view class="title-line"></view> -->
<text class="title-text">资产总览</text>
</div>
<div class="header-con" ref="searchHeightRef">
<div class="header-con" v-show="auth.hasPermi('invest:debitCard')" ref="searchHeightRef">
<div class="item">
<view class="item-icon" style="background: linear-gradient(135deg, #2d8f3c 0%, #1b5e20 100%);">
<uni-icons type="medal-filled" size="20" color="#ffffff"></uni-icons>

View File

@@ -85,7 +85,7 @@
</view>
</view>
<view class="menu-section" v-show="auth.hasPermi('system:user:list')">
<view class="menu-section" v-show="showSystemManage">
<view class="section-title">
<view class="title-bar"></view>
<text class="title-text">系统管理</text>
@@ -154,6 +154,12 @@ const name = userStore.name;
const userId = computed(() => userStore.userId || '');
const version = config.appInfo.version;
// 判断是否显示系统管理只有sys和tyb用户可见
const showSystemManage = computed(() => {
const userName = userStore.name;
return userName === 'sys' || userName === 'tyb'|| userName === 'admin';
});
const popup = ref(null);
function handleToInfo() {
uni.navigateTo({