feat: add tags

This commit is contained in:
xiaoxian521
2021-04-08 17:44:23 +08:00
parent 651ac333ee
commit 1eed20ebce
8 changed files with 199 additions and 41 deletions

View File

@@ -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") // 全部重定向到登录页
})