From aa566e55023f6d4fa0d4223434b95cd064c3d0d0 Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期一, 27 三月 2023 09:25:10 +0800 Subject: [PATCH] 直接使用业务字典完成功能,检查字典是否存在,存在即返回,不存在新增 --- Source/UBCS-WEB/src/store/modules/user.js | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/src/store/modules/user.js b/Source/UBCS-WEB/src/store/modules/user.js index f1c8eb1..1647416 100644 --- a/Source/UBCS-WEB/src/store/modules/user.js +++ b/Source/UBCS-WEB/src/store/modules/user.js @@ -43,6 +43,7 @@ menuAll: getStore({name: 'menuAll'}) || [], token: getStore({name: 'token'}) || '', refreshToken: getStore({name: 'refreshToken'}) || '', + upadatastatus:[] }, actions: { //鏍规嵁鐢ㄦ埛鍚嶇櫥褰� @@ -263,6 +264,8 @@ setStore({name: 'tenantId', content: state.tenantId}) }, SET_USER_INFO: (state, userInfo) => { + console.log('hahahha',userInfo) + state.upadatastatus=userInfo if (validatenull(userInfo.avatar)) { userInfo.avatar = "/img/bg/img-logo.png"; } -- Gitblit v1.9.3