diff --git a/web/src/views/Profile/Index.vue b/web/src/views/Profile/Index.vue index 5a2a5f9..20c78f7 100644 --- a/web/src/views/Profile/Index.vue +++ b/web/src/views/Profile/Index.vue @@ -7,13 +7,13 @@ {{ t('profile.user.title') }} - +
- + @@ -30,11 +30,16 @@ const { t } = useI18n() defineOptions({ name: 'Profile' }) const activeName = ref('basicInfo') const profileUserRef = ref() +const basicInfoRef = ref() // 处理基本信息更新成功 const handleBasicInfoSuccess = async () => { await profileUserRef.value?.refresh() } + +const handleUpdateAvatar = () => { + basicInfoRef.value.init() +}