From 7251f58c035a68d5c2f9f75fa07dbd977afbbcf1 Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Tue, 8 Aug 2023 01:32:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 4e879ddd6face20432ef6abfc85626a5ca83a3f7 --- mock/router.ts | 51 ++++++++++++++++++++++----------------------- src/router/index.ts | 18 ---------------- 2 files changed, 25 insertions(+), 44 deletions(-) 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",