this.$i18n.set(this.user.locale)
This commit is contained in:
Alexander Friedland 2019-11-01 13:23:06 +01:00 committed by GitHub
parent 9a246dea8d
commit 056f2d32a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 || '/')
},
},