修复permission路由拦截参数错误(I5RYY7)
This commit is contained in:
parent
e8d206ceed
commit
36e400027e
@ -20,7 +20,7 @@ list.forEach(item => {
|
|||||||
uni.addInterceptor(item, {
|
uni.addInterceptor(item, {
|
||||||
invoke(to) {
|
invoke(to) {
|
||||||
if (getToken()) {
|
if (getToken()) {
|
||||||
if (to.path === loginPage) {
|
if (to.url === loginPage) {
|
||||||
uni.reLaunch({ url: "/" })
|
uni.reLaunch({ url: "/" })
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user