// 静态路由配置 // 书写格式与动态路由格式一致,全部经由框架统一转换 // 比较动态路由在meta中多加入了role角色权限,为数组类型。一个菜单是否有权限显示,取决于它以及后代菜单是否有权限。 // routes 显示在左侧菜单中的路由(显示顺序在动态路由之前) // 示例如下 const routes = [ { name: "device", path: "/device", meta: { title: "在线设备", icon: "ant-design:code-sandbox-outlined", affix: true }, component: "device" }, { name: "group", path: "/group", meta: { title: "组控识别", icon: "clarity:organization-line" }, component: "group" }, { name: "record", path: "/record", meta: { title: "识别记录", icon: "ant-design:reconciliation-outlined" }, component: "record" } ] export default routes;