mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
feat: add tags
This commit is contained in:
@@ -220,6 +220,7 @@ const whiteList = ["/login", "/register"]
|
||||
|
||||
router.beforeEach((to, _from, next) => {
|
||||
NProgress.start()
|
||||
// @ts-ignore
|
||||
document.title = to.meta.title // 动态title
|
||||
whiteList.indexOf(to.path) !== -1 || storageSession.getItem("info") ? next() : next("/login") // 全部重定向到登录页
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user