mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
perf: route
This commit is contained in:
parent
e080fe4128
commit
262113525d
@ -10,7 +10,6 @@ const systemRouter = {
|
|||||||
icon: "el-icon-setting",
|
icon: "el-icon-setting",
|
||||||
title: "message.hssysManagement",
|
title: "message.hssysManagement",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
savedPosition: true,
|
|
||||||
rank: 6
|
rank: 6
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -19,8 +18,7 @@ const systemRouter = {
|
|||||||
name: "user",
|
name: "user",
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hsBaseinfo",
|
title: "message.hsBaseinfo",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -28,8 +26,7 @@ const systemRouter = {
|
|||||||
name: "dict",
|
name: "dict",
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hsDict",
|
title: "message.hsDict",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -43,7 +40,6 @@ const permissionRouter = {
|
|||||||
title: "message.permission",
|
title: "message.permission",
|
||||||
icon: "el-icon-lollipop",
|
icon: "el-icon-lollipop",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
savedPosition: true,
|
|
||||||
rank: 3
|
rank: 3
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -52,8 +48,7 @@ const permissionRouter = {
|
|||||||
name: "permissionPage",
|
name: "permissionPage",
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.permissionPage",
|
title: "message.permissionPage",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -62,7 +57,6 @@ const permissionRouter = {
|
|||||||
meta: {
|
meta: {
|
||||||
title: "message.permissionButton",
|
title: "message.permissionButton",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
savedPosition: true,
|
|
||||||
authority: []
|
authority: []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,8 +42,7 @@ let routerArrays: Array<RouteConfigs> = [
|
|||||||
meta: {
|
meta: {
|
||||||
title: "message.hshome",
|
title: "message.hshome",
|
||||||
icon: "el-icon-s-home",
|
icon: "el-icon-s-home",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -161,8 +160,7 @@ function deleteDynamicTag(obj: any, current: any, tag?: string) {
|
|||||||
meta: {
|
meta: {
|
||||||
title: "message.hshome",
|
title: "message.hshome",
|
||||||
icon: "el-icon-s-home",
|
icon: "el-icon-s-home",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
obj
|
obj
|
||||||
|
@ -49,8 +49,7 @@ export const routerArrays: Array<RouteConfigs> = [
|
|||||||
meta: {
|
meta: {
|
||||||
title: "message.hshome",
|
title: "message.hshome",
|
||||||
icon: "el-icon-s-home",
|
icon: "el-icon-s-home",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -9,7 +9,6 @@ const componentsRouter = {
|
|||||||
icon: "el-icon-menu",
|
icon: "el-icon-menu",
|
||||||
title: "message.hscomponents",
|
title: "message.hscomponents",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
savedPosition: true,
|
|
||||||
rank: 4
|
rank: 4
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -19,8 +18,7 @@ const componentsRouter = {
|
|||||||
component: () => import("/@/views/components/video/index.vue"),
|
component: () => import("/@/views/components/video/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hsvideo",
|
title: "message.hsvideo",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -33,8 +31,7 @@ const componentsRouter = {
|
|||||||
keepAlive: true,
|
keepAlive: true,
|
||||||
transition: {
|
transition: {
|
||||||
name: "fade"
|
name: "fade"
|
||||||
},
|
}
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -47,8 +44,7 @@ const componentsRouter = {
|
|||||||
transition: {
|
transition: {
|
||||||
enterTransition: "animate__zoomIn",
|
enterTransition: "animate__zoomIn",
|
||||||
leaveTransition: "animate__zoomOut"
|
leaveTransition: "animate__zoomOut"
|
||||||
},
|
}
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -62,8 +58,7 @@ const componentsRouter = {
|
|||||||
extraIcon: {
|
extraIcon: {
|
||||||
svg: true,
|
svg: true,
|
||||||
name: "team-iconxinpinrenqiwang"
|
name: "team-iconxinpinrenqiwang"
|
||||||
},
|
}
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -72,8 +67,7 @@ const componentsRouter = {
|
|||||||
component: () => import("/@/views/components/button/index.vue"),
|
component: () => import("/@/views/components/button/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hsbutton",
|
title: "message.hsbutton",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -82,8 +76,7 @@ const componentsRouter = {
|
|||||||
component: () => import("/@/views/components/cropping/index.vue"),
|
component: () => import("/@/views/components/cropping/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hscropping",
|
title: "message.hscropping",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -92,8 +85,7 @@ const componentsRouter = {
|
|||||||
component: () => import("/@/views/components/count-to/index.vue"),
|
component: () => import("/@/views/components/count-to/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hscountTo",
|
title: "message.hscountTo",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -102,8 +94,7 @@ const componentsRouter = {
|
|||||||
component: () => import("/@/views/components/selector/index.vue"),
|
component: () => import("/@/views/components/selector/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hsselector",
|
title: "message.hsselector",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -112,8 +103,7 @@ const componentsRouter = {
|
|||||||
component: () => import("/@/views/components/seamless-scroll/index.vue"),
|
component: () => import("/@/views/components/seamless-scroll/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hsseamless",
|
title: "message.hsseamless",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -122,8 +112,7 @@ const componentsRouter = {
|
|||||||
component: () => import("/@/views/components/contextmenu/index.vue"),
|
component: () => import("/@/views/components/contextmenu/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hscontextmenu",
|
title: "message.hscontextmenu",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -9,7 +9,6 @@ const editorRouter = {
|
|||||||
icon: "el-icon-edit-outline",
|
icon: "el-icon-edit-outline",
|
||||||
title: "message.hseditor",
|
title: "message.hseditor",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
savedPosition: true,
|
|
||||||
rank: 2
|
rank: 2
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -24,8 +23,7 @@ const editorRouter = {
|
|||||||
extraIcon: {
|
extraIcon: {
|
||||||
svg: true,
|
svg: true,
|
||||||
name: "team-iconxinpin"
|
name: "team-iconxinpin"
|
||||||
},
|
}
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -9,7 +9,6 @@ const errorRouter = {
|
|||||||
icon: "el-icon-position",
|
icon: "el-icon-position",
|
||||||
title: "message.hserror",
|
title: "message.hserror",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
savedPosition: true,
|
|
||||||
rank: 7
|
rank: 7
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -19,8 +18,7 @@ const errorRouter = {
|
|||||||
component: () => import("/@/views/error/401.vue"),
|
component: () => import("/@/views/error/401.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hsfourZeroOne",
|
title: "message.hsfourZeroOne",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -29,8 +27,7 @@ const errorRouter = {
|
|||||||
component: () => import("/@/views/error/404.vue"),
|
component: () => import("/@/views/error/404.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hsfourZeroFour",
|
title: "message.hsfourZeroFour",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -8,7 +8,6 @@ const externalLink = {
|
|||||||
icon: "el-icon-link",
|
icon: "el-icon-link",
|
||||||
title: "message.externalLink",
|
title: "message.externalLink",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
savedPosition: true,
|
|
||||||
rank: 190
|
rank: 190
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -18,7 +17,6 @@ const externalLink = {
|
|||||||
icon: "el-icon-link",
|
icon: "el-icon-link",
|
||||||
title: "message.externalLink",
|
title: "message.externalLink",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
savedPosition: true,
|
|
||||||
rank: 191
|
rank: 191
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ const flowChartRouter = {
|
|||||||
icon: "el-icon-set-up",
|
icon: "el-icon-set-up",
|
||||||
title: "message.hsflowChart",
|
title: "message.hsflowChart",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
savedPosition: true,
|
|
||||||
rank: 1
|
rank: 1
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -19,8 +18,7 @@ const flowChartRouter = {
|
|||||||
component: () => import("/@/views/flow-chart/index.vue"),
|
component: () => import("/@/views/flow-chart/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hsflowChart",
|
title: "message.hsflowChart",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -8,7 +8,6 @@ const homeRouter = {
|
|||||||
meta: {
|
meta: {
|
||||||
icon: "el-icon-s-home",
|
icon: "el-icon-s-home",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
savedPosition: false,
|
|
||||||
rank: 0
|
rank: 0
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -18,8 +17,7 @@ const homeRouter = {
|
|||||||
component: () => import("/@/views/welcome.vue"),
|
component: () => import("/@/views/welcome.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: "message.hshome",
|
title: "message.hshome",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -9,7 +9,6 @@ const nestedRouter = {
|
|||||||
title: "message.hsmenus",
|
title: "message.hsmenus",
|
||||||
icon: "el-icon-s-data",
|
icon: "el-icon-s-data",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
savedPosition: false,
|
|
||||||
rank: 5
|
rank: 5
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -20,8 +19,7 @@ const nestedRouter = {
|
|||||||
meta: {
|
meta: {
|
||||||
title: "message.hsmenu1",
|
title: "message.hsmenu1",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
keepAlive: true,
|
keepAlive: true
|
||||||
savedPosition: false
|
|
||||||
},
|
},
|
||||||
redirect: "/nested/menu1/menu1-1",
|
redirect: "/nested/menu1/menu1-1",
|
||||||
children: [
|
children: [
|
||||||
@ -32,8 +30,7 @@ const nestedRouter = {
|
|||||||
meta: {
|
meta: {
|
||||||
title: "message.hsmenu1-1",
|
title: "message.hsmenu1-1",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
keepAlive: true,
|
keepAlive: true
|
||||||
savedPosition: false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -44,8 +41,7 @@ const nestedRouter = {
|
|||||||
meta: {
|
meta: {
|
||||||
title: "message.hsmenu1-2",
|
title: "message.hsmenu1-2",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
keepAlive: true,
|
keepAlive: true
|
||||||
savedPosition: false
|
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
@ -56,8 +52,7 @@ const nestedRouter = {
|
|||||||
meta: {
|
meta: {
|
||||||
title: "message.hsmenu1-2-1",
|
title: "message.hsmenu1-2-1",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
keepAlive: true,
|
keepAlive: true
|
||||||
savedPosition: false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -72,8 +67,7 @@ const nestedRouter = {
|
|||||||
extraIcon: {
|
extraIcon: {
|
||||||
svg: true,
|
svg: true,
|
||||||
name: "team-iconxinpinrenqiwang"
|
name: "team-iconxinpinrenqiwang"
|
||||||
},
|
}
|
||||||
savedPosition: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -85,8 +79,7 @@ const nestedRouter = {
|
|||||||
meta: {
|
meta: {
|
||||||
title: "message.hsmenu1-3",
|
title: "message.hsmenu1-3",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
keepAlive: true,
|
keepAlive: true
|
||||||
savedPosition: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -98,8 +91,7 @@ const nestedRouter = {
|
|||||||
meta: {
|
meta: {
|
||||||
title: "message.hsmenu2",
|
title: "message.hsmenu2",
|
||||||
showLink: true,
|
showLink: true,
|
||||||
keepAlive: true,
|
keepAlive: true
|
||||||
savedPosition: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -29,7 +29,6 @@ const remainingRouter = [
|
|||||||
icon: "el-icon-s-home",
|
icon: "el-icon-s-home",
|
||||||
title: "message.hshome",
|
title: "message.hshome",
|
||||||
showLink: false,
|
showLink: false,
|
||||||
savedPosition: false,
|
|
||||||
rank: 104
|
rank: 104
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
|
@ -14,8 +14,7 @@ export const injectResponsiveStorage = (app: App, config: ServerConfigs) => {
|
|||||||
meta: {
|
meta: {
|
||||||
title: "message.hshome",
|
title: "message.hshome",
|
||||||
icon: "el-icon-s-home",
|
icon: "el-icon-s-home",
|
||||||
showLink: true,
|
showLink: true
|
||||||
savedPosition: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user