Commit 67f4ed60 authored by Smile's avatar Smile Committed by wux

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

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