Browse Source

fix(vben5): Fixed the concurrent error in updating profile

- fixed #1246
pull/1247/head
colin 9 months ago
parent
commit
8fd6ac0050
  1. 1
      apps/vben5/packages/@abp/account/src/components/MySetting.vue
  2. 2
      apps/vben5/packages/@abp/account/src/components/components/BasicSettings.vue

1
apps/vben5/packages/@abp/account/src/components/MySetting.vue

@ -164,6 +164,7 @@ onMounted(async () => {
v-if="selectedMenuKeys[0] === 'basic'"
:profile="myProfile"
@submit="onUpdateProfile"
@picture-change="onGetProfile"
/>
<BindSettings v-else-if="selectedMenuKeys[0] === 'bind'" />
<SecuritySettings

2
apps/vben5/packages/@abp/account/src/components/components/BasicSettings.vue

@ -28,6 +28,7 @@ const props = defineProps<{
profile: ProfileDto;
}>();
const emits = defineEmits<{
(event: 'pictureChange'): void;
(event: 'submit', profile: UpdateProfileDto): void;
}>();
const FormItem = Form.Item;
@ -61,6 +62,7 @@ async function onAvatarChange(_param: UploadChangeParam) {
state.userInfo && (state.userInfo.avatar = URL.createObjectURL(picture));
});
message.success($t('AbpUi.SavedSuccessfully'));
emits('pictureChange');
} finally {
pictureState.value.uploading = false;
}

Loading…
Cancel
Save