Commit 6e9b1a86 authored by Smile's avatar Smile Committed by wux

会员等级多语言显示问题

parent 59f6f538
......@@ -90,6 +90,9 @@ export default {
}
},
computed: {
language() {
return this.$store.getters.language
},
score() {
if (this.integralInfo.totalScore) {
return Math.min(
......@@ -102,6 +105,11 @@ export default {
return 0
}
},
watch: {
language(newVal, oldVal) {
this.onLanguageChange(newVal, oldVal)
}
},
created() {
this.getIntegralInfo()
const { loginUser } = this.$store.state.user
......@@ -112,6 +120,11 @@ export default {
}
},
methods: {
onLanguageChange(newVal, oldVal) {
if (newVal !== oldVal) {
this.getIntegralInfo();
}
},
// 跳转 日志
toJump(val) {
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