feat(web): 根路径与未知路径默认进入成员端

管理端入口形态待定,当前经地址栏 /admin 进入;交互设计访问拓扑同步。
This commit is contained in:
2026-10-10 16:47:01 +08:00
parent ea4efbe1d7
commit 34a7823e1a
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -17,10 +17,10 @@ declare module "vue-router" {
export const router: Router = createRouter({
history: createWebHistory(),
routes: [
{ path: "/", redirect: "/admin/overview" },
{ path: "/", redirect: "/member" },
...adminRoutes,
...memberRoutes,
{ path: "/:pathMatch(.*)*", redirect: "/admin/overview" },
{ path: "/:pathMatch(.*)*", redirect: "/member" },
],
});