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