From bb3f44938825dd55b72926dc6f3c553338cf9498 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期三, 29 十二月 2021 15:53:30 +0800 Subject: [PATCH] 修正单词拼写错误 --- src/api/system/user.js | 4 ++-- src/utils/ruoyi.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 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 @@ } // 杞崲瀛楃涓诧紝undefined,null绛夎浆鍖栦负"" -export function praseStrEmpty(str) { +export function parseStrEmpty(str) { if (!str || str == "undefined" || str == "null") { return ""; } -- Gitblit v1.9.3