From 8d66ff34fae5b048a6b7923cc75d34f13a08be9d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 02 八月 2022 11:42:43 +0800 Subject: [PATCH] Merge branch 'develop' --- src/store/action.js | 47 +++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 39 insertions(+), 8 deletions(-) diff --git a/src/store/action.js b/src/store/action.js index fed77db..b4bbf15 100644 --- a/src/store/action.js +++ b/src/store/action.js @@ -8,18 +8,49 @@ } } -// 鍒囨崲涓昏彍鍗� -export const modifyMainMenu = (selectedMainMenu) => { +// 鍒濆鍖栬彍鍗曚俊鎭� +export const modifyMenuTree = (menuTree) => { return { - type: user.MODIFY_MAINMENU, - selectedMainMenu + type: user.MODIFY_MENUTREE, + menuTree } } -// 淇敼瀵艰埅鏍忚彍鍗� -export const modifyTabview = (tabviews) => { +// 鍒囨崲涓昏彍鍗� +export const modifyMainMenu = (mainMenu) => { return { - type: user.MODIFY_TABVIEW, - tabviews + type: user.MODIFY_MAINMENU, + mainMenu } } + +// 閲嶇疆缂栬緫绾у埆 +export const resetEditLevel = (editLevel) => { + return { + type: user.RESET_EDITLEVEL, + editLevel + } +} + +// 鍒濆鍖栨寜閽潈闄� +export const initActionPermission = (permAction) => { + return { + type: user.INIT_ACTIONPERMISSION, + permAction: permAction + } +} + +// 鍒濆鍖栬彍鍗曟潈闄� +export const initMenuPermission = (permMenus) => { + return { + type: user.INIT_MENUPERMISSION, + permMenus: permMenus + } +} + +// 閫�鍑洪噸缃� +export const logout = () => { + return { + type: user.LOGOUT + } +} \ No newline at end of file -- Gitblit v1.8.0