From b78a07f1927222c6f1a0f59a96fff07f97045a08 Mon Sep 17 00:00:00 2001 From: dayjoy Date: Fri, 26 Sep 2025 16:46:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(client):=20=E6=9B=BF=E6=8D=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/client/src/api/user.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/client/src/api/user.ts b/packages/client/src/api/user.ts index 99670e6..3d022df 100644 --- a/packages/client/src/api/user.ts +++ b/packages/client/src/api/user.ts @@ -1,5 +1,4 @@ import api from "@/api/index.ts"; -import {getGroupId} from "@/utils/auth.ts"; export type UserInfo = { userId: number; @@ -16,14 +15,12 @@ export type UserInfo = { * 获取当前用户的信息 */ export const getUserInfo = async (): Promise => { - return await api.post('https://egret.byteawake.com/api/user/info'); + return await api.get('/api/user/info'); }; /** * 获取群组内所有用户的信息 */ export const getGroupUsers = async (): Promise => { - return await api.post('https://egret.byteawake.com/api/group/members', { - groupId: Number(getGroupId()), - }); + return await api.get('/api/group/members'); };