From 5c17b7aceb49eda94110e7c79c7921c8801f648c Mon Sep 17 00:00:00 2001 From: zhangrenyuan <18990852002@163.com> Date: Wed, 5 Nov 2025 11:00:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BB=A5=E5=89=8D?= =?UTF-8?q?=E7=9A=84=E8=B7=AF=E7=94=B1=E4=B8=8E=E6=9D=83=E9=99=90=E5=90=8D?= =?UTF-8?q?=E5=AD=97=E5=AF=B9=E5=BA=94=EF=BC=8C=E4=B8=8D=E8=83=BD=E5=85=A8?= =?UTF-8?q?=E9=83=A8=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/consume/bean/beanConsume.vue | 12 ++++++------ src/views/recharge/bean/beanRecharge.vue | 24 ++++++++++++------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/views/consume/bean/beanConsume.vue b/src/views/consume/bean/beanConsume.vue index df8141d..000b01c 100644 --- a/src/views/consume/bean/beanConsume.vue +++ b/src/views/consume/bean/beanConsume.vue @@ -3,8 +3,8 @@ @@ -81,17 +81,17 @@ const initPermissions = () => { // 默认跳转逻辑 const getDefaultAuditRoute = () => { initPermissions(); - if (hasAdd.value) return 'add_gold_bean_consumption'; + if (hasAdd.value) return 'addBeanConsume'; if (hasLive.value) return 'liveStream'; if (hasFan.value) return 'dieHardFan'; if (hasArticleVideo.value) return 'articleVideo'; - return 'add_gold_bean_consumption'; + return 'addBeanConsume'; }; // 监听路由变化更新标签状态 watch(() => route.name, (newName) => { initPermissions() - if (newName=== 'add_gold_bean_consumption' || newName === 'liveStream' || newName === 'dieHardFan' || newName === 'articleVideo') { + if (newName=== 'addBeanConsume' || newName === 'liveStream' || newName === 'dieHardFan' || newName === 'articleVideo') { activeTab.value = newName; } else if (newName === 'beanConsume') { // 每次访问 /beanConsume 都进行默认跳转 @@ -108,7 +108,7 @@ onMounted(() => { navigateTo(defaultRoute); } else { // 非父路由初始化当前标签状态 - if (route.name=== 'add_gold_bean_consumption' || route.name === 'liveStream' || route.name === 'dieHardFan' || route.name === 'articleVideo') { + if (route.name=== 'addBeanConsume' || route.name === 'liveStream' || route.name === 'dieHardFan' || route.name === 'articleVideo') { activeTab.value = route.name; } } diff --git a/src/views/recharge/bean/beanRecharge.vue b/src/views/recharge/bean/beanRecharge.vue index ccab568..052214c 100644 --- a/src/views/recharge/bean/beanRecharge.vue +++ b/src/views/recharge/bean/beanRecharge.vue @@ -3,24 +3,24 @@ 新增充值 系统充值 线上充值 @@ -66,16 +66,16 @@ const initPermissions = () => { // 默认跳转逻辑 const getDefaultAuditRoute = () => { initPermissions(); - if (hasAdd.value) return 'add_gold_bean_recharge'; - if (hasSystem.value) return 'system_gold_bean_recharge'; - if (hasOnline.value) return 'online_gold_bean_recharge'; - return 'add_gold_bean_recharge'; + if (hasAdd.value) return 'addBeanRecharge'; + if (hasSystem.value) return 'beanSystemRecharge'; + if (hasOnline.value) return 'beanOnlineRecharge'; + return 'addBeanRecharge'; }; // 监听路由变化更新标签状态 watch(() => route.name, (newName) => { initPermissions() - if (newName === 'add_gold_bean_recharge' || newName === 'system_gold_bean_recharge' || newName === 'online_gold_bean_recharge') { + if (newName === 'addBeanRecharge' || newName === 'beanSystemRecharge' || newName === 'beanOnlineRecharge') { activeTab.value = newName; } else if (newName === 'beanRecharge') { // 每次访问 /beanConsume 都进行默认跳转 @@ -92,7 +92,7 @@ onMounted(() => { navigateTo(defaultRoute); } else { // 非父路由初始化当前标签状态 - if (route.name === 'add_gold_bean_recharge' || route.name === 'system_gold_bean_recharge' || route.name === 'online_gold_bean_recharge') { + if (route.name === 'addBeanRecharge' || route.name === 'beanSystemRecharge' || route.name === 'beanOnlineRecharge') { activeTab.value = route.name; } }