add admin head.

This commit is contained in:
2023-03-13 19:42:29 +08:00
parent 89ba38ba0a
commit 341f0a0a2f
18 changed files with 197 additions and 18 deletions

View File

@@ -18,6 +18,7 @@ router.beforeEach((to, from, next) => {
if (to.matched.some((record) => record.meta.requiresAuth)) {
if (!storage.get(STORAGE_KEY.AUTHED)) {
toggleLogin(true)
next("/")
} else {
next()
}