Commit 4f213b46 by 陈超

A

parent a80cc97d
...@@ -2,6 +2,7 @@ const getters = { ...@@ -2,6 +2,7 @@ const getters = {
tag: state => state.tags.tag, tag: state => state.tags.tag,
website: state => state.common.website, website: state => state.common.website,
userInfo: state => state.user.userInfo, userInfo: state => state.user.userInfo,
shopInfo: state => state.user.shopInfo,
theme: state => state.common.theme, theme: state => state.common.theme,
themeName: state => state.common.themeName, themeName: state => state.common.themeName,
isShade: state => state.common.isShade, isShade: state => state.common.isShade,
......
...@@ -91,11 +91,11 @@ ...@@ -91,11 +91,11 @@
}, },
computed: { computed: {
...mapState({ ...mapState({
userInfo: (state) => state.user.userInfo, userInfo: (state) => state.user.shopInfo,
}), }),
tail() { tail() {
if(this.userInfo.phone) { if(this.userInfo.account) {
let phone = this.userInfo.phone let phone = this.userInfo.account
let count = phone.length let count = phone.length
return phone.substr(count - 4, 4) return phone.substr(count - 4, 4)
} }
......
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