From 9c6795fd3c44e46cf3955fbfd8f8eeca23acb7a9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 08 十月 2022 00:31:51 +0800 Subject: [PATCH] 2022-10-08 --- src/store/action.js | 41 +++++++++++++++++------------------------ 1 files changed, 17 insertions(+), 24 deletions(-) diff --git a/src/store/action.js b/src/store/action.js index 2f9efce..c0115e7 100644 --- a/src/store/action.js +++ b/src/store/action.js @@ -8,40 +8,33 @@ } } +// 鍒濆鍖栬彍鍗曚俊鎭� +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 logout = () => { return { - type: user.TOGGLE_ISIFRAME, - isiframe - } -} - -// 閫�鍑虹郴缁熸椂鍙傛暟閲嶇疆 -export const resetState = () => { - return { - type: user.RESET_STATE - } -} - -// 閫�鍑虹郴缁熸椂鍙傛暟閲嶇疆 -export const resetDebug = () => { - return { - type: user.RESET_DEBUG + type: user.LOGOUT } } \ No newline at end of file -- Gitblit v1.8.0