From 0271aa5414843f662c74a683cfc36f5f799d2a3c Mon Sep 17 00:00:00 2001
From: guxin0123 <guxin0123@gmail.com>
Date: 星期三, 16 三月 2022 12:52:33 +0800
Subject: [PATCH] update ruoyi-ui/src/store/modules/user.js. 修复数据库用户表 头像列为 null 时不显示默认头像问题

---
 ruoyi-ui/src/api/system/user.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ruoyi-ui/src/api/system/user.js b/ruoyi-ui/src/api/system/user.js
index 577bea2..ad227f9 100644
--- a/ruoyi-ui/src/api/system/user.js
+++ b/ruoyi-ui/src/api/system/user.js
@@ -1,5 +1,5 @@
 import request from '@/utils/request'
-import { praseStrEmpty } from "@/utils/ruoyi";
+import { parseStrEmpty } from "@/utils/ruoyi";
 
 // 查询用户列表
 export function listUser(query) {
@@ -13,7 +13,7 @@
 // 查询用户详细
 export function getUser(userId) {
   return request({
-    url: '/system/user/' + praseStrEmpty(userId),
+    url: '/system/user/' + parseStrEmpty(userId),
     method: 'get'
   })
 }

--
Gitblit v1.9.2