Commit 308bd577 authored by Smile's avatar Smile

会员等级多语言显示问题

parent caec849f
...@@ -90,6 +90,9 @@ export default { ...@@ -90,6 +90,9 @@ export default {
} }
}, },
computed: { computed: {
language() {
return this.$store.getters.language
},
score() { score() {
if (this.integralInfo.totalScore) { if (this.integralInfo.totalScore) {
return Math.min( return Math.min(
...@@ -102,6 +105,11 @@ export default { ...@@ -102,6 +105,11 @@ export default {
return 0 return 0
} }
}, },
watch: {
language(newVal, oldVal) {
this.onLanguageChange(newVal, oldVal)
}
},
created() { created() {
this.getIntegralInfo() this.getIntegralInfo()
const { loginUser } = this.$store.state.user const { loginUser } = this.$store.state.user
...@@ -112,6 +120,11 @@ export default { ...@@ -112,6 +120,11 @@ export default {
} }
}, },
methods: { methods: {
onLanguageChange(newVal, oldVal) {
if (newVal !== oldVal) {
this.getIntegralInfo();
}
},
// 跳转 日志 // 跳转 日志
toJump(val) { toJump(val) {
let path = '' let path = ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment