diff --git a/src/api/system/user.js b/src/api/system/user.js index 577bea2..ad227f9 100644 --- a/src/api/system/user.js +++ b/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 listUser(query) { // 查询用户详细 export function getUser(userId) { return request({ - url: '/system/user/' + praseStrEmpty(userId), + url: '/system/user/' + parseStrEmpty(userId), method: 'get' }) } diff --git a/src/utils/ruoyi.js b/src/utils/ruoyi.js index 54085a4..4872d56 100644 --- a/src/utils/ruoyi.js +++ b/src/utils/ruoyi.js @@ -110,7 +110,7 @@ export function sprintf(str) { } // 转换字符串,undefined,null等转化为"" -export function praseStrEmpty(str) { +export function parseStrEmpty(str) { if (!str || str == "undefined" || str == "null") { return ""; }