forked from nsjcy/frontEnd/nsjcy

liuwh
2020-03-29 9c7c21e8eacda173feb418bdfe739f7f97358233
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,
                });
            })
    }