Commit 149bdf79 by xuzhenghua

push

parent e19e4bc0
......@@ -28,12 +28,6 @@ class scoreReport extends Component {
}
componentDidMount() {
const {user, history} = this.props
if (user.hasError) {
history.push('/passport')
return
}
this.getCodeWe()
this.handleFetchInfo(0)
}
......@@ -87,6 +81,12 @@ class scoreReport extends Component {
http.get(`${API.home}/sys/at/user_score/${index}`).then(res => {
const {code, data} = res.data
if (code === 200) {
const {user, history} = this.props
if (user.hasError) {
history.push('/passport')
return
}
this.setState({
myRankList: data
})
......
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