Browse Source

公共页面无需登录

lifanagju_citu 2 tháng trước cách đây
mục cha
commit
a622652a83
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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}`) // 否则全部重定向到登录页
 })