Commit a33882ee authored by Smile's avatar Smile

侧边栏名称会员等级多语言显示问题

parent 308bd577
...@@ -1040,8 +1040,16 @@ export default { ...@@ -1040,8 +1040,16 @@ export default {
}; };
}, },
computed: { computed: {
language() {
return this.$store.getters.language
},
...mapGetters(["loginUser"]), ...mapGetters(["loginUser"]),
}, },
watch: {
language(newVal, oldVal) {
this.onLanguageChange(newVal, oldVal)
}
},
created() { created() {
this.getMemberSystemStatus(); this.getMemberSystemStatus();
this.action = this.$route.name; this.action = this.$route.name;
...@@ -1057,6 +1065,11 @@ export default { ...@@ -1057,6 +1065,11 @@ export default {
}); });
}, },
methods: { methods: {
onLanguageChange(newVal, oldVal) {
if (newVal !== oldVal) {
this.getInfo();
}
},
getMemberSystemStatus(){ getMemberSystemStatus(){
memberSystemStatus().then(res=>{ memberSystemStatus().then(res=>{
this.switchState = res.data this.switchState = res.data
......
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