feat: add Admin layout

This commit is contained in:
2026-09-12 19:38:11 +07:00
parent 301063533a
commit 1c877de130
26 changed files with 742 additions and 1132 deletions
+2 -2
View File
@@ -71,8 +71,8 @@ async function submit() {
loading.value = true
try {
await auth.login(username.value, password.value)
const redirect = typeof route.query.redirect === 'string' ? route.query.redirect : '/select-project'
router.push(redirect)
const redirect = typeof route.query.redirect === 'string' ? route.query.redirect : null
router.push(redirect ?? (auth.isAdmin ? '/projects' : '/select-project'))
} catch (e) {
error.value = errorMessage(e)
} finally {