e9594835 by yangwei

用户名

1 parent e9c701ca
......@@ -29,14 +29,14 @@ export default {
sidebarRight,
},
computed: {
...mapGetters(["sidebar", "dicData"]),
...mapGetters(["sidebar", "dicData","userInfo"]),
logoName() {
return this.dicData['sysCode'] && this.dicData['sysCode'].filter(item =>
item.DCODE == "systemTitle"
)
},
userName(){
return this.$store.state.userInfo ? this.$store.state.userInfo.name : ""
return this.userInfo ? this.userInfo.name : ""
}
},
methods: {
......