Procházet zdrojové kódy

refactor(utils): 移除未使用的标签栏相关代码

清理不再使用的标签栏配置和判断函数,简化工具模块
feige996 před 8 měsíci
rodič
revize
db8e7f454b
1 změnil soubory, kde provedl 0 přidání a 6 odebrání
  1. 0 6
      src/utils/index.ts

+ 0 - 6
src/utils/index.ts

@@ -1,5 +1,4 @@
 import { pages, subPackages } from '@/pages.json'
-import { tabbarList } from '@/tabbar/config'
 import { isMpWeixin } from './platform'
 
 export function getLastPage() {
@@ -93,11 +92,6 @@ export function getAllPages(key = 'needLogin') {
   return result
 }
 
-export function isCurrentPageTabbar() {
-  const routeObj = currRoute()
-  return tabbarList.some(item => `/${item.pagePath}` === routeObj.path)
-}
-
 export function getCurrentPageI18nKey() {
   const routeObj = currRoute()
   const currPage = pages.find(page => `/${page.path}` === routeObj.path)