feat: 设置页监听语言变化重新获取信息
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user