Browse Source

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

RuoYi 2 years ago
parent
commit
36e400027e
1 changed files with 1 additions and 1 deletions
  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