merge lll-fix-nodata-img into master

组织管理-成员列表删除成员修复

Created-by: LovableCat
Commit-by: LovableCat
Merged-by: LovableCat
Description: 组织管理-成员列表删除成员修复

See merge request: hk_openRepo/OpenRepo_Portal!36
This commit is contained in:
LovableCat
2025-03-19 11:57:48 +08:00
2 changed files with 4 additions and 3 deletions

View File

@@ -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('查询用户信息失败');