Commit 954011c4 by zhanghaozhe

分享页

parent e2ed5fbe
...@@ -36,6 +36,12 @@ class Landing extends Component { ...@@ -36,6 +36,12 @@ class Landing extends Component {
this.fetchPageData() this.fetchPageData()
} }
componentDidUpdate(prevProps) {
if(prevProps.user.hasError !== this.props.user.hasError && !this.props.user.hasError){
this.fetchPageData()
}
}
fetchPageData = ({origin = this.state.origin, treasure_code = this.state.treasure_code} = {}) => { fetchPageData = ({origin = this.state.origin, treasure_code = this.state.treasure_code} = {}) => {
http.post(`${API.home}/sys/treasure/team`, { http.post(`${API.home}/sys/treasure/team`, {
......
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