rebuild(stage-9): deliver deterministic intelligent screening
This commit is contained in:
@@ -3,23 +3,36 @@ import { createRouter, createWebHistory } from "vue-router";
|
||||
import SystemManagementView from "./views/SystemManagementView.vue";
|
||||
import WorkspaceView from "./views/WorkspaceView.vue";
|
||||
import EntityDetailView from "./views/EntityDetailView.vue";
|
||||
import TrackingPage from "../pages/screener/TrackingPage.vue";
|
||||
import { findWorkspace } from "./workspaceRegistry";
|
||||
|
||||
export default createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{ path: "/", redirect: "/workspace/emotion" },
|
||||
{
|
||||
path: "/workspace/screener/tracking",
|
||||
name: "screener-tracking",
|
||||
component: TrackingPage,
|
||||
meta: { title: "智能选股" },
|
||||
},
|
||||
{
|
||||
path: "/workspace/:workspace",
|
||||
name: "workspace",
|
||||
component: WorkspaceView,
|
||||
beforeEnter: (to) => (findWorkspace(String(to.params.workspace)) ? true : "/workspace/emotion"),
|
||||
},
|
||||
{ path: "/system", name: "system", component: SystemManagementView },
|
||||
{
|
||||
path: "/system",
|
||||
name: "system",
|
||||
component: SystemManagementView,
|
||||
meta: { title: "系统管理" },
|
||||
},
|
||||
{
|
||||
path: "/market/:entityType/:identifier",
|
||||
name: "entity-detail",
|
||||
component: EntityDetailView,
|
||||
meta: { title: "行情详情" },
|
||||
},
|
||||
{ path: "/:pathMatch(.*)*", redirect: "/workspace/emotion" },
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user