feat: 设置页监听语言变化重新获取信息

This commit is contained in:
2026-06-03 09:53:23 +08:00
parent 6b214d2abc
commit 1c80ba9fbc

View File

@@ -75,7 +75,7 @@
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { ref, onMounted, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import EmailVerificationDialog from './components/EmailVerificationDialog.vue'
import ProfileSection from './components/ProfileSection.vue'
@@ -119,6 +119,10 @@
loadUserProfile
} = useSettingsForm({ t, locale })
watch(locale, () => {
loadUserProfile()
})
onMounted(() => {
loadUserProfile()
})