From f0602b981659c6d1ff18e8dba4ca1ce89c5f5610 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 22 三月 2020 21:18:34 +0800 Subject: [PATCH] 2020-03-22 --- src/store/action.js | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/store/action.js b/src/store/action.js index 071fda0..a0c08bd 100644 --- a/src/store/action.js +++ b/src/store/action.js @@ -68,4 +68,21 @@ type: user.RESET_EDITLEVEL, editLevel } +} + +// 鍒濆鍖栨寜閽潈闄愬強鍒涘缓瀛樺偍杩囩▼鍙敤瀛楁 +export const initPermission = (permRoles, permAction, permFuncField) => { + return { + type: user.INIT_PERMISSION, + permRoles: permRoles, + permAction: permAction, + permFuncField: permFuncField + } +} + +// 閫�鍑洪噸缃� +export const logout = () => { + return { + type: user.LOGOUT + } } \ No newline at end of file -- Gitblit v1.8.0