mirror of
https://github.com/certd/certd.git
synced 2026-04-15 13:32:37 +08:00
36 lines
974 B
TypeScript
36 lines
974 B
TypeScript
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路由的子路由");
|