Commit 407cbd70 by xuzhenghua

vip

parent cfd8e193
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -115,7 +115,6 @@ class NewVip extends Component {
}
componentDidMount() {
console.log(!this.props.user.hasError)
this.fetchNotice()
this.fetchVipBag()
......@@ -149,6 +148,11 @@ class NewVip extends Component {
cookie.set("avatar_file", item.avatar_file, {expires, path: '/', domain: '.julyedu.com'})
})
if (cookie.get("token") && cookie.get("uid")) {
this.fetchNotice()
this.fetchVipBag()
}
this.props.setCurrentUser(this.transformUser(this.state.userInfoList))
}
transformUser = res => {
......
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