lifanagju_citu пре 2 месеци
родитељ
комит
a622652a83
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/permission.js

+ 1 - 0
src/permission.js

@@ -145,6 +145,7 @@ router.beforeEach(async (to, from, next) => {
     next()
     return
   }
+
   next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
 })