perf: 优化示例代码

This commit is contained in:
xiaoxian521
2022-04-11 12:17:47 +08:00
parent c4ebacedfe
commit 160db34fa0
12 changed files with 105 additions and 60 deletions

View File

@@ -9,31 +9,33 @@ const systemRouter = {
icon: "setting",
title: "menus.hssysManagement",
i18n: true,
rank: 6
rank: 11
},
children: [
// {
// path: "/system/dict/index",
// name: "dict",
// meta: {
// title: "menus.hsDict",
// i18n: true,
// keepAlive: true
// }
// },
{
path: "/system/user/index",
name: "user",
meta: {
title: "menus.hsBaseinfo",
icon: "flUser",
title: "menus.hsUser",
i18n: true
}
},
{
path: "/system/dict/index",
name: "dict",
path: "/system/role/index",
name: "role",
meta: {
title: "menus.hsDict",
i18n: true,
keepAlive: true
}
},
{
path: "/system/post/index",
name: "post",
meta: {
title: "menus.hsPost",
icon: "peoples",
title: "menus.hsRole",
i18n: true
}
},
@@ -41,6 +43,7 @@ const systemRouter = {
path: "/system/dept/index",
name: "dept",
meta: {
icon: "office-building",
title: "menus.hsDept",
i18n: true
}

View File

@@ -2,7 +2,7 @@ import { MockMethod } from "vite-plugin-mock";
export default [
{
url: "/system",
url: "/role",
method: "post",
response: () => {
return {