From 58d533b992d434f9e82cebf5771af488744aecb8 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Thu, 28 Dec 2023 19:33:19 +0800
Subject: [PATCH] 修复问题

---
 api/user.js |   35 +++++++++++++++++++++++++----------
 1 files changed, 25 insertions(+), 10 deletions(-)

diff --git a/api/user.js b/api/user.js
index 4bf336c..9cd92a0 100644
--- a/api/user.js
+++ b/api/user.js
@@ -54,16 +54,7 @@
 	})
 }
 
-// 获取用户信息
-export const getUser = (id) => {
-	return http.request({
-		url: '/api/blade-user/detail',
-		method: 'GET',
-		params: {
-			id
-		}
-	})
-}
+
 
 // 获取所有用户
 export const getUserList = () => {
@@ -103,6 +94,30 @@
 	})
 }
 
+
+// 获取用户信息
+export const getUser = (id) => {
+	return http.request({
+		url: '/blade-system/user/detail',
+		method: 'GET',
+		params: {
+			id
+		}
+	})
+}
+
+// 获取用户信息
+export const fetchUserInfo = (id) => {
+	return http.request({
+		url: '/blade-system/user/details',
+		method: 'GET',
+		params: {
+			id
+		}
+	})
+}
+
+
 export default {
 	token,
 	userInfo,

--
Gitblit v1.9.3