Auto merge base into i18n

This commit is contained in:
GitHub Actions 2025-02-25 03:51:54 +00:00
commit c17d405456
2 changed files with 13 additions and 13 deletions

View File

@ -4,7 +4,7 @@ import { isMpWeixin } from './platform'
const getLastPage = () => {
// getCurrentPages() 至少有1个元素所以不再额外判断
// const lastPage = getCurrentPages().at(-1)
// 上面那个在低版本安卓中打包报错所以改用下面这个【虽然我加了src/interceptions/prototype.ts但依然报错】
// 上面那个在低版本安卓中打包报错,所以改用下面这个【虽然我加了 src/interceptions/prototype.ts但依然报错】
const pages = getCurrentPages()
return pages[pages.length - 1]
}
@ -25,8 +25,8 @@ export const getIsTabbar = () => {
/**
* path redirectPath
* path /pages/login/index
* redirectPath /pages/demo/base/route-interceptor
* path '/pages/login/index'
* redirectPath '/pages/demo/base/route-interceptor'
*/
export const currRoute = () => {
const lastPage = getLastPage()
@ -120,7 +120,7 @@ export const getNeedLoginPages = (): string[] => getAllPages('needLogin').map((p
export const needLoginPages: string[] = getAllPages('needLogin').map((page) => page.path)
/**
* BaseUrl
* baseUrl
*/
export const getEnvBaseUrl = () => {
// 请求基准地址