修复全量审查问题;接入vitest;精简IdP图标逻辑
CI / test (push) Successful in 46s

This commit is contained in:
2026-07-22 16:51:45 +08:00
parent efcb84eaa8
commit 119f60516c
39 changed files with 1164 additions and 797 deletions
+2 -2
View File
@@ -100,8 +100,8 @@ const router = createRouter({
router.beforeEach((to) => {
const auth = useAuthStore()
if (!to.meta.public && !auth.isAuthed) return { name: 'login', query: { redirect: to.fullPath } }
if (to.name === 'login' && auth.isAuthed) return { name: 'overview' }
if (!to.meta.public && !auth.isAuthed()) return { name: 'login', query: { redirect: to.fullPath } }
if (to.name === 'login' && auth.isAuthed()) return { name: 'overview' }
return true
})