组织管理-成员列表删除成员修复
This commit is contained in:
@@ -40,7 +40,7 @@ export function inviteOrganizationMemberApi(params: { groupId: number, username:
|
||||
export function deleteOrganizationMemberApi(params: { groupId: number, username: string }): Promise<UnitRes<boolean>> {
|
||||
return request({
|
||||
url: `/api/v1/group/member/remove`,
|
||||
method: 'delete',
|
||||
method: 'post',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ const userInfo = shallowRef<UserInfoType>({
|
||||
groupDesc: null,
|
||||
});
|
||||
const searchOrganizationLoading = ref(false);
|
||||
const hasOrganization = ref(false);
|
||||
const hasOrganization = ref(true);
|
||||
const organizationInfo = shallowRef<OrganizationInfoType>({
|
||||
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('查询用户信息失败');
|
||||
|
||||
Reference in New Issue
Block a user