- views/app/AppList.vue(新)+ views/proxytest/ProxyTest.vue(新):应用列表与代理测试演示页 - router/routes + apiDefinitions + App.vue/layout:新页路由与菜单接线 - assets/mock/gatewayApi.ts:mock 数据扩充(+136 行) - RouteList:列表页联动增强 - vite.config:mock 相关配置调整 - theme.ts:sync 刷新至 20261006-2013-75c1d10 并补回本仓唯一允许适配(顶部 // @ts-nocheck,strict vue-tsc 契约);typecheck 零错误
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
import type { RouteRecordRaw } from "vue-router";
|
|
|
|
/**
|
|
* 网关治理前端路由(三项,无权限矩阵——网关无菜单/角色接口)。
|
|
* 与 UserBase 一致用 hash 模式:静态托管下刷新不依赖服务端 rewrite。
|
|
*/
|
|
const routes: RouteRecordRaw[] = [
|
|
{ path: "/", redirect: "/ledger" },
|
|
{
|
|
path: "/ledger",
|
|
name: "LedgerList",
|
|
component: () => import("@/views/ledger/LedgerList.vue"),
|
|
meta: { title: "访问台账" },
|
|
},
|
|
{
|
|
path: "/routes",
|
|
name: "RouteList",
|
|
component: () => import("@/views/route/RouteList.vue"),
|
|
meta: { title: "路由注册表" },
|
|
},
|
|
{
|
|
path: "/targets",
|
|
name: "TargetList",
|
|
component: () => import("@/views/target/TargetList.vue"),
|
|
meta: { title: "目标地址" },
|
|
},
|
|
{
|
|
path: "/apps",
|
|
name: "AppList",
|
|
component: () => import("@/views/app/AppList.vue"),
|
|
meta: { title: "应用管理" },
|
|
},
|
|
{
|
|
path: "/proxy-test",
|
|
name: "ProxyTest",
|
|
component: () => import("@/views/proxytest/ProxyTest.vue"),
|
|
meta: { title: "代理测试" },
|
|
},
|
|
];
|
|
|
|
export default routes;
|