From b2c8062131ceb9bf2061594dd54cdfc20da3a05e Mon Sep 17 00:00:00 2001
From: water <2778335106@qq.com>
Date: 星期五, 20 五月 2022 17:09:28 +0800
Subject: [PATCH] style 修改一个错误的参数注释     public R<Void> remove(@ApiParam("岗位ID串") @PathVariable Long[] roleIds) {         return toAjax(roleService.deleteRoleByIds(roleIds));     }

---
 ruoyi-ui/src/store/modules/user.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ruoyi-ui/src/store/modules/user.js b/ruoyi-ui/src/store/modules/user.js
index 917f916..d67c9a4 100644
--- a/ruoyi-ui/src/store/modules/user.js
+++ b/ruoyi-ui/src/store/modules/user.js
@@ -51,7 +51,7 @@
       return new Promise((resolve, reject) => {
         getInfo().then(res => {
           const user = res.data.user
-          const avatar = user.avatar == "" ? require("@/assets/images/profile.jpg") : user.avatar;
+          const avatar = (user.avatar == "" || user.avatar == null) ? require("@/assets/images/profile.jpg") : user.avatar;
           if (res.data.roles && res.data.roles.length > 0) { // 楠岃瘉杩斿洖鐨剅oles鏄惁鏄竴涓潪绌烘暟缁�
             commit('SET_ROLES', res.data.roles)
             commit('SET_PERMISSIONS', res.data.permissions)

--
Gitblit v1.9.3