feat:完善对应菜单
This commit is contained in:
@@ -22,7 +22,7 @@ const systemManagementRouter = {
|
||||
meta: {
|
||||
icon: "ri:admin-line",
|
||||
title: "menus.pureUser",
|
||||
roles: ["admin"]
|
||||
//roles: ["admin"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -31,7 +31,7 @@ const systemManagementRouter = {
|
||||
meta: {
|
||||
icon: "ri:admin-fill",
|
||||
title: "menus.pureRole",
|
||||
roles: ["admin"]
|
||||
//roles: ["admin"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -40,7 +40,7 @@ const systemManagementRouter = {
|
||||
meta: {
|
||||
icon: "ep:menu",
|
||||
title: "menus.pureSystemMenu",
|
||||
roles: ["admin"]
|
||||
//roles: ["admin"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -49,7 +49,7 @@ const systemManagementRouter = {
|
||||
meta: {
|
||||
icon: "ri:git-branch-line",
|
||||
title: "menus.pureDept",
|
||||
roles: ["admin"]
|
||||
//roles: ["admin"]
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -70,7 +70,7 @@ const systemMonitorRouter = {
|
||||
meta: {
|
||||
icon: "ri:user-voice-line",
|
||||
title: "menus.pureOnlineUser",
|
||||
roles: ["admin"]
|
||||
//roles: ["admin"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -80,7 +80,7 @@ const systemMonitorRouter = {
|
||||
meta: {
|
||||
icon: "ri:window-line",
|
||||
title: "menus.pureLoginLog",
|
||||
roles: ["admin"]
|
||||
//roles: ["admin"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -90,7 +90,7 @@ const systemMonitorRouter = {
|
||||
meta: {
|
||||
icon: "ri:history-fill",
|
||||
title: "menus.pureOperationLog",
|
||||
roles: ["admin"]
|
||||
//roles: ["admin"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -100,7 +100,7 @@ const systemMonitorRouter = {
|
||||
meta: {
|
||||
icon: "ri:file-search-line",
|
||||
title: "menus.pureSystemLog",
|
||||
roles: ["admin"]
|
||||
//roles: ["admin"]
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -119,14 +119,14 @@ const permissionRouter = {
|
||||
name: "PermissionPage",
|
||||
meta: {
|
||||
title: "menus.purePermissionPage",
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "/permission/button",
|
||||
meta: {
|
||||
title: "menus.purePermissionButton",
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
},
|
||||
children: [
|
||||
{
|
||||
@@ -176,7 +176,7 @@ const frameRouter = {
|
||||
title: "menus.pureColorHuntDoc",
|
||||
frameSrc: "https://colorhunt.co/",
|
||||
keepAlive: true,
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -186,7 +186,7 @@ const frameRouter = {
|
||||
title: "menus.pureUiGradients",
|
||||
frameSrc: "https://uigradients.com/",
|
||||
keepAlive: true,
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -196,7 +196,7 @@ const frameRouter = {
|
||||
title: "menus.pureEpDoc",
|
||||
frameSrc: "https://element-plus.org/zh-CN/",
|
||||
keepAlive: true,
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -206,7 +206,7 @@ const frameRouter = {
|
||||
title: "menus.pureTailwindcssDoc",
|
||||
frameSrc: "https://tailwindcss.com/docs/installation",
|
||||
keepAlive: true,
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -216,7 +216,7 @@ const frameRouter = {
|
||||
title: "menus.pureVueDoc",
|
||||
frameSrc: "https://cn.vuejs.org/",
|
||||
keepAlive: true,
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -226,7 +226,7 @@ const frameRouter = {
|
||||
title: "menus.pureViteDoc",
|
||||
frameSrc: "https://cn.vitejs.dev/",
|
||||
keepAlive: true,
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -236,7 +236,7 @@ const frameRouter = {
|
||||
title: "menus.purePiniaDoc",
|
||||
frameSrc: "https://pinia.vuejs.org/zh/index.html",
|
||||
keepAlive: true,
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -246,7 +246,7 @@ const frameRouter = {
|
||||
title: "menus.pureRouterDoc",
|
||||
frameSrc: "https://router.vuejs.org/zh/",
|
||||
keepAlive: true,
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -262,7 +262,7 @@ const frameRouter = {
|
||||
name: "https://pure-admin.github.io/pure-admin-doc",
|
||||
meta: {
|
||||
title: "menus.pureExternalLink",
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -270,7 +270,7 @@ const frameRouter = {
|
||||
name: "https://pure-admin-utils.netlify.app/",
|
||||
meta: {
|
||||
title: "menus.pureUtilsLink",
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -291,7 +291,7 @@ const tabsRouter = {
|
||||
name: "Tabs",
|
||||
meta: {
|
||||
title: "menus.pureTabs",
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
},
|
||||
// query 传参模式
|
||||
@@ -302,7 +302,7 @@ const tabsRouter = {
|
||||
// 不在menu菜单中显示
|
||||
showLink: false,
|
||||
activePath: "/tabs/index",
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
},
|
||||
// params 传参模式
|
||||
@@ -314,7 +314,7 @@ const tabsRouter = {
|
||||
// 不在menu菜单中显示
|
||||
showLink: false,
|
||||
activePath: "/tabs/index",
|
||||
roles: ["admin", "common"]
|
||||
//roles: ["admin", "common"]
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -329,8 +329,8 @@ export default defineFakeRoute([
|
||||
systemManagementRouter,
|
||||
systemMonitorRouter,
|
||||
permissionRouter,
|
||||
frameRouter,
|
||||
tabsRouter
|
||||
// frameRouter,
|
||||
// tabsRouter
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ri:ubuntu-fill",
|
||||
title: $t("menus.pureAble"),
|
||||
rank: able
|
||||
rank: able,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ri:file-info-line",
|
||||
title: $t("menus.pureAbout"),
|
||||
rank: about
|
||||
rank: about,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -8,7 +8,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ri:artboard-line",
|
||||
title: $t("menus.pureBoard"),
|
||||
rank: board
|
||||
rank: board,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ep:menu",
|
||||
title: $t("menus.pureComponents"),
|
||||
rank: components
|
||||
rank: components,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ep:edit",
|
||||
title: $t("menus.pureEditor"),
|
||||
rank: editor
|
||||
rank: editor,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -8,7 +8,8 @@ export default {
|
||||
icon: "ri:information-line",
|
||||
// showLink: false,
|
||||
title: $t("menus.pureAbnormal"),
|
||||
rank: error
|
||||
rank: error,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ep:set-up",
|
||||
title: $t("menus.pureFlowChart"),
|
||||
rank: flowchart
|
||||
rank: flowchart,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ri:edit-box-line",
|
||||
title: $t("menus.pureSchemaForm"),
|
||||
rank: form
|
||||
rank: form,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -8,7 +8,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ri:terminal-window-line",
|
||||
title: $t("menus.pureFormDesign"),
|
||||
rank: formdesign
|
||||
rank: formdesign,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ri:bar-chart-horizontal-line",
|
||||
title: $t("menus.pureGanttastic"),
|
||||
rank: ganttastic
|
||||
rank: ganttastic,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ep:guide",
|
||||
title: $t("menus.pureGuide"),
|
||||
rank: guide
|
||||
rank: guide,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ri:list-check",
|
||||
title: $t("menus.pureList"),
|
||||
rank: list
|
||||
rank: list,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -6,7 +6,8 @@ export default {
|
||||
redirect: "/menuoverflow/index",
|
||||
meta: {
|
||||
title: $t("menus.pureMenuOverflow"),
|
||||
rank: menuoverflow
|
||||
rank: menuoverflow,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -8,7 +8,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ri:mind-map",
|
||||
title: $t("menus.pureMindMap"),
|
||||
rank: mind
|
||||
rank: mind,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
title: $t("menus.pureMenus"),
|
||||
icon: "ep:histogram",
|
||||
rank: nested
|
||||
rank: nested,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ri:file-ppt-2-line",
|
||||
title: "PPT",
|
||||
rank: ppt
|
||||
rank: ppt,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ri:checkbox-circle-line",
|
||||
title: $t("menus.pureResult"),
|
||||
rank: result
|
||||
rank: result,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -7,7 +7,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ri:table-line",
|
||||
title: $t("menus.pureTable"),
|
||||
rank: table
|
||||
rank: table,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -6,7 +6,8 @@ export default {
|
||||
meta: {
|
||||
icon: "ep:set-up",
|
||||
title: "vue-flow",
|
||||
rank: vueflow
|
||||
rank: vueflow,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user