Browse Source
Merge pull request #1247 from colinin/fixed-1246
fix(vben5): Fixed the concurrent error in updating profile
pull/1249/head
yx lin
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
0 deletions
-
apps/vben5/packages/@abp/account/src/components/MySetting.vue
-
apps/vben5/packages/@abp/account/src/components/components/BasicSettings.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 |
|
|
|
|
|
|
|
@ -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; |
|
|
|
} |
|
|
|
|