refactor: ♻️ 路由地址修改
This commit is contained in:
parent
3ccd60aeac
commit
4e879ddd6f
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue