Files
certd/packages/ui/certd-client/src/router/source/framework.ts
2024-10-20 03:00:55 +08:00

36 lines
974 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import LayoutFramework from "/src/layout/layout-framework.vue";
//import { crudResources } from "/@/router/source/modules/crud";
import { sysResources } from "/@/router/source/modules/sys";
import { certdResources } from "/@/router/source/modules/certd";
export const frameworkResource = [
{
title: "框架",
name: "framework",
path: "/",
redirect: "/index",
component: LayoutFramework,
meta: {
icon: "ion:accessibility",
auth: true
},
children: [
{
title: "首页",
name: "index",
path: "/index",
component: "/framework/home/index.vue",
meta: {
fixedAside: true,
showOnHeader: false,
icon: "ion:home-outline"
}
},
//...crudResources,
...certdResources,
...sysResources
]
}
];
console.assert(frameworkResource.length === 1, "frameworkResource数组长度只能为1你只能配置framework路由的子路由");