2414a7eb by yangwei

用户名显示

1 parent d2ed8625
......@@ -5,7 +5,7 @@
{{ logoName[0].DNAME }}
</div>
<div class="user">
欢迎进入系统 {{ userInfo.name }}
欢迎进入系统 {{ userName }}
<span @click="onCancel">
<svg-icon icon-class="close" class="closeStyle" />退出系统</span>
</div>
......@@ -29,11 +29,14 @@ export default {
sidebarRight,
},
computed: {
...mapGetters(["sidebar", "dicData", "userInfo"]),
logoName: function () {
...mapGetters(["sidebar", "dicData"]),
logoName() {
return this.dicData['sysCode'] && this.dicData['sysCode'].filter(item =>
item.DCODE == "systemTitle"
)
},
userName(){
return this.$store.state.userInfo ? this.$store.state.userInfo.name : ""
}
},
methods: {
......
......@@ -128,11 +128,6 @@ export default {
});
},
},
computed: {
productName() {
return this.$store.state.products.products.name;
},
},
components: {},
};
</script>
......