rebuild(stage-4): deliver shared shell and account interfaces

This commit is contained in:
leefer
2026-07-30 02:08:20 +08:00
parent d1c658d8ef
commit 3b75bf2d63
47 changed files with 3042 additions and 99 deletions
+14 -2
View File
@@ -1,8 +1,20 @@
import { createRouter, createWebHistory } from "vue-router";
import BootstrapView from "./views/BootstrapView.vue";
import SystemManagementView from "./views/SystemManagementView.vue";
import WorkspaceView from "./views/WorkspaceView.vue";
import { findWorkspace } from "./workspaceRegistry";
export default createRouter({
history: createWebHistory(),
routes: [{ path: "/", name: "bootstrap", component: BootstrapView }],
routes: [
{ path: "/", redirect: "/workspace/emotion" },
{
path: "/workspace/:workspace",
name: "workspace",
component: WorkspaceView,
beforeEnter: (to) => (findWorkspace(String(to.params.workspace)) ? true : "/workspace/emotion"),
},
{ path: "/system", name: "system", component: SystemManagementView },
{ path: "/:pathMatch(.*)*", redirect: "/workspace/emotion" },
],
});