feat: 设置页监听语言变化重新获取信息
This commit is contained in:
@@ -75,7 +75,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted, watch } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import EmailVerificationDialog from './components/EmailVerificationDialog.vue'
|
import EmailVerificationDialog from './components/EmailVerificationDialog.vue'
|
||||||
import ProfileSection from './components/ProfileSection.vue'
|
import ProfileSection from './components/ProfileSection.vue'
|
||||||
@@ -119,6 +119,10 @@
|
|||||||
loadUserProfile
|
loadUserProfile
|
||||||
} = useSettingsForm({ t, locale })
|
} = useSettingsForm({ t, locale })
|
||||||
|
|
||||||
|
watch(locale, () => {
|
||||||
|
loadUserProfile()
|
||||||
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
loadUserProfile()
|
loadUserProfile()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user