1 Commits

Author SHA1 Message Date
846058fa0f Raise LoginModal z-index above recipe overlay
Some checks failed
Test / unit-test (push) Successful in 4s
Test / build-check (push) Successful in 4s
Test / e2e-test (push) Failing after 1m5s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 22:19:48 +00:00
3 changed files with 2 additions and 13 deletions

View File

@@ -119,7 +119,7 @@ async function submit() {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.35);
z-index: 5000;
z-index: 6000;
display: flex;
align-items: center;
justify-content: center;

View File

@@ -136,11 +136,7 @@ function handleLogout() {
auth.logout()
ui.showToast('已退出登录')
emit('close')
if (router.currentRoute.value.meta.requiresAuth) {
router.push('/')
} else {
window.location.reload()
}
window.location.reload()
}
onMounted(loadNotifications)

View File

@@ -10,13 +10,11 @@ const routes = [
path: '/manage',
name: 'RecipeManager',
component: () => import('../views/RecipeManager.vue'),
meta: { requiresAuth: true },
},
{
path: '/inventory',
name: 'Inventory',
component: () => import('../views/Inventory.vue'),
meta: { requiresAuth: true },
},
{
path: '/oils',
@@ -27,31 +25,26 @@ const routes = [
path: '/projects',
name: 'Projects',
component: () => import('../views/Projects.vue'),
meta: { requiresAuth: true },
},
{
path: '/mydiary',
name: 'MyDiary',
component: () => import('../views/MyDiary.vue'),
meta: { requiresAuth: true },
},
{
path: '/audit',
name: 'AuditLog',
component: () => import('../views/AuditLog.vue'),
meta: { requiresAuth: true },
},
{
path: '/bugs',
name: 'BugTracker',
component: () => import('../views/BugTracker.vue'),
meta: { requiresAuth: true },
},
{
path: '/users',
name: 'UserManagement',
component: () => import('../views/UserManagement.vue'),
meta: { requiresAuth: true },
},
]