Merge branch 'base'
This commit is contained in:
commit
5464d0b817
@ -19,7 +19,8 @@ const isDev = import.meta.env.DEV
|
|||||||
|
|
||||||
// 黑名单登录拦截器 - (适用于大部分页面不需要登录,少部分页面需要登录)
|
// 黑名单登录拦截器 - (适用于大部分页面不需要登录,少部分页面需要登录)
|
||||||
const navigateToInterceptor = {
|
const navigateToInterceptor = {
|
||||||
// 注意,这里的url是 '/' 开头的(也有可能是相对路径),如 '/pages/index/index',跟 'pages.json' 里面的 path 不同
|
// 注意,这里的url是 '/' 开头的,如 '/pages/index/index',跟 'pages.json' 里面的 path 不同
|
||||||
|
// 增加对相对路径的处理,BY 网友 @ideal
|
||||||
invoke({ url }: { url: string }) {
|
invoke({ url }: { url: string }) {
|
||||||
// console.log(url) // /pages/route-interceptor/index?name=feige&age=30
|
// console.log(url) // /pages/route-interceptor/index?name=feige&age=30
|
||||||
let path = url.split('?')[0]
|
let path = url.split('?')[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user