From b5b8d941f32395cf968cda40852382f2b0614a13 Mon Sep 17 00:00:00 2001 From: 也曾为你、像超人 <1553592282@qq.com> Date: 星期二, 17 五月 2022 10:08:37 +0800 Subject: [PATCH] update ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml. 问题:查业务类型为其他(businessType = 0)的数据时,会查到所有数据 --- ruoyi-ui/src/store/modules/user.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/store/modules/user.js b/ruoyi-ui/src/store/modules/user.js index dd2b6db..75c0c57 100644 --- a/ruoyi-ui/src/store/modules/user.js +++ b/ruoyi-ui/src/store/modules/user.js @@ -49,9 +49,9 @@ // 获取用户信息 GetInfo({ commit, state }) { return new Promise((resolve, reject) => { - getInfo(state.token).then(res => { + getInfo().then(res => { const user = res.user - const avatar = user.avatar == "" ? require("@/assets/image/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar; + const avatar = (user.avatar == "" || user.avatar == null) ? require("@/assets/images/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar; if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组 commit('SET_ROLES', res.roles) commit('SET_PERMISSIONS', res.permissions) @@ -66,7 +66,7 @@ }) }) }, - + // 退出系统 LogOut({ commit, state }) { return new Promise((resolve, reject) => { -- Gitblit v1.9.2