diff --git a/mock/router.ts b/mock/router.ts index 915a3ea3..6272b8c8 100644 --- a/mock/router.ts +++ b/mock/router.ts @@ -78,32 +78,7 @@ const data = { }, ], }, - { - path: "/icon", - component: "Layout", - redirect: "/icon/index", - meta: { - title: "系统管理", - icon: "system", - hidden: false, - roles: ["ADMIN"], - keepAlive: true, - }, - children: [ - { - path: "index", - component: "demo/icons", - name: "Icons", - meta: { - title: "图标", - icon: "icon", - hidden: false, - roles: ["ADMIN"], - keepAlive: true, - }, - }, - ], - }, + { path: "/api", component: "Layout", @@ -327,6 +302,30 @@ const data = { keepAlive: true, }, children: [ + { + path: "permission", + component: "permission/page", + name: "Permission", + meta: { + title: "Permission", + icon: "", + hidden: false, + roles: ["ADMIN"], + keepAlive: true, + }, + }, + { + path: "icon-demo", + component: "demo/icons", + name: "Icons", + meta: { + title: "图标", + icon: "", + hidden: false, + roles: ["ADMIN"], + keepAlive: true, + }, + }, { path: "websocket", component: "demo/websocket", diff --git a/src/router/index.ts b/src/router/index.ts index e56190cf..6df76e4a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -52,24 +52,6 @@ export const constantRoutes: RouteRecordRaw[] = [ ], }, - { - path: "/permission", - component: Layout, - redirect: "/permission/page", - children: [ - { - path: "page", - component: () => import("@/views/permission/page.vue"), - name: "PermissionPage", - meta: { - title: "Permission", - icon: "password", - keepAlive: true, - }, - }, - ], - }, - // 外部链接 // { // path: "/external-link",