src/router/modules/item.ts
@@ -1,12 +1,21 @@ export default { path: "/item", meta: { title: "项目管理", icon: "mdi:chart-timeline" }, children: [ { // path随便写,但前面必须有个 `/` path: "/item", // component对应的值前不需要加 / 值对应的是实际业务 `.vue` 或 `.tsx` 代码路径 component: () => import("@/views/system/dept/index.vue"), name: "item", // redirect: "/error/403", meta: { icon: "ri/information-line", // showLink: hasFlash, title: "项目管理", rank: 9 roles: ["GYS"] // showLink:false } } ] } satisfies RouteConfigsTable;