Commit 48def614 by zhanghaozhe

Merge branch 'ai-test'

parents 238f4ad7 ac25de78
......@@ -55,6 +55,14 @@ class Scores extends Component {
}
}
componentDidUpdate(prevProps, prevState) {
if (this.props.user.hasError !== prevProps.user.hasError) {
this.getUserScores(0)
this.getUserAddress()
}
}
handleChange = (e) => {
const isNeverSHow = e.target.checked
this.setState({
......@@ -243,9 +251,9 @@ class Scores extends Component {
<div>
<span>仅显示前50</span>
<a href="javascript:void(0);" onClick={() => {
if(user.hasError){
if (user.hasError) {
history.push('/passport')
}else {
} else {
this.setState({
isShowUserAddress: true,
})
......
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