fix: 路由拦截器在相对路径的情况下异常

This commit is contained in:
ideal
2025-04-25 17:07:12 +08:00
committed by feige996
parent 3737e6496b
commit 32765a789a
2 changed files with 13 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
import { pages, subPackages, tabBar } from '@/pages.json'
import { isMpWeixin } from './platform'
const getLastPage = () => {
export const getLastPage = () => {
// getCurrentPages() 至少有1个元素所以不再额外判断
// const lastPage = getCurrentPages().at(-1)
// 上面那个在低版本安卓中打包会报错,所以改用下面这个【虽然我加了 src/interceptions/prototype.ts但依然报错】