Explorar o código

修复permission路由拦截参数错误(I5RYY7)

RuoYi %!s(int64=3) %!d(string=hai) anos
pai
achega
36e400027e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      permission.js

+ 1 - 1
permission.js

@@ -20,7 +20,7 @@ list.forEach(item => {
   uni.addInterceptor(item, {
     invoke(to) {
       if (getToken()) {
-        if (to.path === loginPage) {
+        if (to.url === loginPage) {
           uni.reLaunch({ url: "/" })
         }
         return true