From a3e10d9273e602a8d1cfdce74bf413804f673b58 Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Tue, 7 Apr 2026 10:02:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E6=8E=89=E5=8E=9F=E9=92=B1=E5=8C=85?= =?UTF-8?q?=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/usergold/gold/clientCount.vue | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/views/usergold/gold/clientCount.vue b/src/views/usergold/gold/clientCount.vue index a88b652..8a3a1f7 100644 --- a/src/views/usergold/gold/clientCount.vue +++ b/src/views/usergold/gold/clientCount.vue @@ -21,14 +21,6 @@ > {{ $t('clientCount.clientCountBalance') }} - - {{ $t('clientCount.clientCountWallet') }} - @@ -56,7 +48,6 @@ const {menuTree} = storeToRefs(adminStore); const activeTab = ref(''); const hasDetail = ref(false); const hasBalance = ref(false); -const hasWallet = ref(false); // 导航方法 const navigateTo = (name) => { activeTab.value = name; @@ -69,7 +60,6 @@ const initPermissions = () => { if (!menuTree.value || !menuTree.value.length) return; hasDetail.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_customer_bill); hasBalance.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_customer_balance); - hasWallet.value = hasMenuPermission(menuTree.value, permissionMapping.wallet); }; // 默认跳转逻辑 @@ -77,14 +67,13 @@ const getDefaultAuditRoute = () => { initPermissions(); if (hasDetail.value) return 'clientCountDetail'; if (hasBalance.value) return 'clientCountBalance'; - if (hasWallet.value) return 'clientCountWallet'; return 'clientCountDetail'; }; // 监听路由变化更新标签状态 watch(() => route.name, (newName) => { initPermissions() - if (newName === 'clientCountDetail' || newName === 'clientCountBalance' || newName === 'clientCountWallet') { + if (newName === 'clientCountDetail' || newName === 'clientCountBalance') { activeTab.value = newName; } else if (newName === 'usergold') { // 每次访问 /coinConsume 都进行默认跳转 @@ -101,7 +90,7 @@ onMounted(() => { navigateTo(defaultRoute); } else { // 非父路由初始化当前标签状态 - if (route.name === 'clientCountDetail' || route.name === 'clientCountBalance' || route.name === 'clientCountWallet') { + if (route.name === 'clientCountDetail' || route.name === 'clientCountBalance') { activeTab.value = route.name; } }