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 | 57 +++++++++++++++++++++++++-------------------------------- 1 files changed, 25 insertions(+), 32 deletions(-) diff --git a/src/store/action.js b/src/store/action.js index e73abfb..b4bbf15 100644 --- a/src/store/action.js +++ b/src/store/action.js @@ -8,56 +8,49 @@ } } +// 鍒濆鍖栬彍鍗曚俊鎭� +export const modifyMenuTree = (menuTree) => { + return { + type: user.MODIFY_MENUTREE, + menuTree + } +} + // 鍒囨崲涓昏彍鍗� -export const modifyMainMenu = (selectedMainMenu) => { +export const modifyMainMenu = (mainMenu) => { return { type: user.MODIFY_MAINMENU, - selectedMainMenu + mainMenu } } -// 淇敼瀵艰埅鏍忚彍鍗� -export const modifyTabview = (tabviews) => { +// 閲嶇疆缂栬緫绾у埆 +export const resetEditLevel = (editLevel) => { return { - type: user.MODIFY_TABVIEW, - tabviews + type: user.RESET_EDITLEVEL, + editLevel } } -// 淇敼绐楀彛鏍峰紡锛屽尯鍒唅frame涓庢甯搁〉闈� -export const toggleIsiframe = (isiframe) => { +// 鍒濆鍖栨寜閽潈闄� +export const initActionPermission = (permAction) => { return { - type: user.TOGGLE_ISIFRAME, - isiframe + type: user.INIT_ACTIONPERMISSION, + permAction: permAction } } -// 閫�鍑虹郴缁熸椂鍙傛暟閲嶇疆 -export const resetState = () => { +// 鍒濆鍖栬彍鍗曟潈闄� +export const initMenuPermission = (permMenus) => { return { - type: user.RESET_STATE + type: user.INIT_MENUPERMISSION, + permMenus: permMenus } } -// 閫�鍑虹郴缁熸椂鍙傛暟閲嶇疆 -export const resetDebug = () => { +// 閫�鍑洪噸缃� +export const logout = () => { return { - type: user.RESET_DEBUG - } -} - -// 鍒锋柊tab椤甸潰 -export const refreshTabView = (refreshTab) => { - return { - type: user.REFRESH_TABVIEW, - refreshTab - } -} - -// 閲嶇疆缂栬緫鐘舵�� -export const resetEditState = (editState) => { - return { - type: user.RESET_EDITSTATE, - editState + type: user.LOGOUT } } \ No newline at end of file -- Gitblit v1.8.0