7fb11b31 by 任超
2 parents f9b7466f 2c8d9f2d
......@@ -5,7 +5,7 @@
{{ logoName[0] && 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>
......