issue-part 2

This commit is contained in:
caishi 2021-09-02 15:04:26 +08:00
parent 322260c3fc
commit dbb5efdcd5
3 changed files with 12 additions and 5 deletions

View File

@ -19,8 +19,10 @@ function FocusButton({is_watch , fontClass, starText, is_block , id , successFun
}).then((result) => {
if (result && result.data.status === 0) {
successFunc && successFunc();
if(!flag){
setWatchFlag(!watchFlag);
}
}
setIsSpin(false);
})
.catch((error) => {setIsSpin(false);});

View File

@ -74,6 +74,7 @@ class InfosUser extends Component {
//切换种类
changeCategory = (cate) => {
this.state.page = 1;
this.state.category = cate.target.value;
this.get_projects();
};
@ -236,7 +237,7 @@ class InfosUser extends Component {
<div className="edu-txt-center pt30 mb30 border-top-grey">
<Pagination
simple
defaultCurrent={page}
current={page}
total={total}
pageSize={limit}
onChange={this.changePage}

View File

@ -4,9 +4,13 @@ class WatcherUsers extends Component {
render() {
const {user, current_user , fetchUser } = this.props;
return (
<div className="minH-650">
{user && user.login && <CommonLists userType="watch_users" login={user.login} current_user={current_user} fetchUser={fetchUser}/>}
</div>
user && user.login &&
<CommonLists
userType="watch_users"
login={user.login}
current_user={current_user}
fetchUser={fetchUser}
/>
);
}
}