refactor: ♻️ 路由地址修改
Former-commit-id: 4e879ddd6face20432ef6abfc85626a5ca83a3f7
This commit is contained in:
@@ -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",
|
path: "/api",
|
||||||
component: "Layout",
|
component: "Layout",
|
||||||
@@ -327,6 +302,30 @@ const data = {
|
|||||||
keepAlive: true,
|
keepAlive: true,
|
||||||
},
|
},
|
||||||
children: [
|
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",
|
path: "websocket",
|
||||||
component: "demo/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",
|
// path: "/external-link",
|
||||||
|
|||||||
Reference in New Issue
Block a user