|
|
@@ -7,13 +7,13 @@
|
|
|
<span>{{ t('profile.user.title') }}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <ProfileUser />
|
|
|
+ <ProfileUser ref="profileUserRef" />
|
|
|
</el-card>
|
|
|
<el-card class="user ml-3 w-2/3" shadow="hover">
|
|
|
<div>
|
|
|
<el-tabs v-model="activeName" class="profile-tabs" style="height: 400px" tab-position="top">
|
|
|
<el-tab-pane :label="t('profile.info.basicInfo')" name="basicInfo">
|
|
|
- <BasicInfo />
|
|
|
+ <BasicInfo @success="handleBasicInfoSuccess" />
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane :label="t('profile.info.resetPwd')" name="resetPwd">
|
|
|
<ResetPwd />
|
|
|
@@ -32,6 +32,12 @@ import { BasicInfo, ProfileUser, ResetPwd, UserSocial } from './components'
|
|
|
const { t } = useI18n()
|
|
|
defineOptions({ name: 'Profile' })
|
|
|
const activeName = ref('basicInfo')
|
|
|
+const profileUserRef = ref()
|
|
|
+
|
|
|
+// 处理基本信息更新成功
|
|
|
+const handleBasicInfoSuccess = async () => {
|
|
|
+ await profileUserRef.value?.refresh()
|
|
|
+}
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
.user {
|