From a51d58dcbd8f3644f4cc5800d25e017357b2353c Mon Sep 17 00:00:00 2001 From: LovableCat Date: Wed, 19 Mar 2025 11:57:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E7=BB=87=E7=AE=A1=E7=90=86-=E6=88=90?= =?UTF-8?q?=E5=91=98=E5=88=97=E8=A1=A8=E5=88=A0=E9=99=A4=E6=88=90=E5=91=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/organizationManage/organizationManageApi.ts | 2 +- .../PersonalCenter/OrganizationManage/OrganizationManage.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api/organizationManage/organizationManageApi.ts b/src/api/organizationManage/organizationManageApi.ts index cdeaf3c..ee46843 100644 --- a/src/api/organizationManage/organizationManageApi.ts +++ b/src/api/organizationManage/organizationManageApi.ts @@ -40,7 +40,7 @@ export function inviteOrganizationMemberApi(params: { groupId: number, username: export function deleteOrganizationMemberApi(params: { groupId: number, username: string }): Promise> { return request({ url: `/api/v1/group/member/remove`, - method: 'delete', + method: 'post', data: params, }); } diff --git a/src/views/Jyh/PersonalCenter/OrganizationManage/OrganizationManage.vue b/src/views/Jyh/PersonalCenter/OrganizationManage/OrganizationManage.vue index 5e33295..01258d2 100644 --- a/src/views/Jyh/PersonalCenter/OrganizationManage/OrganizationManage.vue +++ b/src/views/Jyh/PersonalCenter/OrganizationManage/OrganizationManage.vue @@ -155,7 +155,7 @@ const userInfo = shallowRef({ groupDesc: null, }); const searchOrganizationLoading = ref(false); -const hasOrganization = ref(false); +const hasOrganization = ref(true); const organizationInfo = shallowRef({ groupId: 0, organizationName: '', @@ -218,13 +218,14 @@ async function queryUserInfo() { userInfo.value = res.data?.data.data; } if (userInfo.value.groupId) { - hasOrganization.value = true; organizationInfo.value = { groupId: userInfo.value.groupId, organizationName: userInfo.value.groupName as string, organizationProfile: userInfo.value.groupDesc as string, }; getMemberList(); + } else { + hasOrganization.value = false; } } catch (e) { Message.error('查询用户信息失败');