优化了路由逻辑

This commit is contained in:
carry 2025-02-15 17:28:41 +08:00
parent 89d94ef694
commit c2e1462a28

View File

@ -15,13 +15,10 @@ const router = createRouter({
component: () => import('@/views/ManagePage.vue'),
meta: { requiresAuth: true }
},
{
path: '/',
redirect: '/manage'
},
{
path: '/:pathMatch(.*)*',
redirect: '/login'
redirect: '/manage'
}
]
})