mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
change
this.$i18n.set(this.user.locale)
This commit is contained in:
parent
9a246dea8d
commit
056f2d32a1
@ -25,12 +25,8 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleSuccess() {
|
||||
const currentLocale = this.$i18n.locale()
|
||||
const userSettingLocale = this.user.locale
|
||||
if (currentLocale !== userSettingLocale) {
|
||||
this.$i18n.set(userSettingLocale)
|
||||
}
|
||||
handleSuccess() {
|
||||
this.$i18n.set(this.user.locale)
|
||||
this.$router.replace(this.$route.query.path || '/')
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user