summaryrefslogtreecommitdiff
path: root/src/utils/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/constants.js')
-rw-r--r--src/utils/constants.js60
1 files changed, 59 insertions, 1 deletions
diff --git a/src/utils/constants.js b/src/utils/constants.js
index 5c446e7..fe219e7 100644
--- a/src/utils/constants.js
+++ b/src/utils/constants.js
@@ -41,4 +41,62 @@ export const userMenus = [{
"children": null
}
]
-}] \ No newline at end of file
+}]
+export const profileMenus = [{
+ "id": "1000",
+ "name": "envMgts",
+ "i18n": "overall.environments",
+ "pid": "0",
+ "type": "menu",
+ "perms": "",
+ "route": "/envMgts",
+ "icon": "asw-icon icon-Environments",
+ "order": 1,
+ "state": 1,
+ "createTimestamp": 1702534225000,
+ "children": [
+ {
+ "id": "1001",
+ "name": "envMgt_add",
+ "i18n": "buttons.add",
+ "pid": "1000",
+ "type": "button",
+ "perms": "",
+ "route": "",
+ "icon": "",
+ "order": 1,
+ "state": 1,
+ "createTimestamp": 1722478572000,
+ "children": null
+ },
+ {
+ "id": "1002",
+ "name": "envMgt_edit",
+ "i18n": "buttons.edit",
+ "pid": "1000",
+ "type": "button",
+ "perms": "",
+ "route": "",
+ "icon": "",
+ "order": 2,
+ "state": 1,
+ "createTimestamp": 1722478572000,
+ "children": null
+ }
+ ]
+}]
+export const normalMenuType = 0 // 登陆后默认菜单
+export const userMenuType = 1
+export const profileMenuType = 2
+export const meunsMap = [
+ {
+ key: userMenuType,
+ value: userMenus,
+ path: 'users'
+ },
+ {
+ key: profileMenuType,
+ value: profileMenus,
+ path: 'envMgts'
+ }
+] \ No newline at end of file