SunshineIns/src/page/SignIn.jsx
@@ -30,15 +30,18 @@ } componentDidMount() { document.title = '签到上墙'; this.getData(); setInterval(() => this.getData(), 5000) } componentWillMount() { this.getData() } getData = () => { // signinfo const { id } = this.props.match.params; this.setState({ loading: true }) // this.setState({ loading: true }) Fetch.signinfo(id) .then(res => { console.log(res) @@ -46,7 +49,7 @@ code: res.data.code, personList: res.data.personList, activityName: res.data.activityName, loading: false, // loading: false, }); }) }