From e61ad54da58977302386f3ecb0ca806a174764ce Mon Sep 17 00:00:00 2001 From: haos Date: Tue, 21 Oct 2025 09:53:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3isPageTabbar=E5=9C=A8?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE0:=20NO=5FTABBAR=E6=97=B6=E8=BF=94=E5=9B=9Etr?= =?UTF-8?q?ue=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tabbar/store.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tabbar/store.ts b/src/tabbar/store.ts index 01c713a..623883f 100644 --- a/src/tabbar/store.ts +++ b/src/tabbar/store.ts @@ -4,7 +4,7 @@ import { reactive } from 'vue' import { isNeedLoginMode } from '@/router/config' import { FG_LOG_ENABLE, judgeIsExcludePath } from '@/router/interceptor' import { useTokenStore } from '@/store/token' -import { tabbarList as _tabbarList, customTabbarEnable } from './config' +import { tabbarList as _tabbarList, customTabbarEnable, selectedTabbarStrategy, TABBAR_STRATEGY_MAP } from './config' // TODO 1/2: 中间的鼓包tabbarItem的开关 const BULGE_ENABLE = false @@ -25,6 +25,9 @@ if (customTabbarEnable && BULGE_ENABLE) { } export function isPageTabbar(path: string) { + if (selectedTabbarStrategy === TABBAR_STRATEGY_MAP.NO_TABBAR) { + return false + } const _path = path.split('?')[0] return tabbarList.some(item => item.pagePath === _path) }