+上 关注后不需要提示

This commit is contained in:
caishi 2021-04-23 14:50:52 +08:00
parent 1eb3c20af4
commit 2f6597355c
2 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import './Component.scss';
import { getUser } from '../GetData/getData';
import axios from 'axios';
function Contributors({contributors,owner,projectsId,id,showNotification}){
function Contributors({contributors,owner,projectsId}){
const [ menuList ,setMenuList ]= useState([]);
const [ list , setList ]= useState(undefined);
const [ total , setTotal ]= useState(0);
@ -104,7 +104,6 @@ function Contributors({contributors,owner,projectsId,id,showNotification}){
a[0].is_watch = flag;
}
setMenusFunc(a[0]);
showNotification(result.data.message);
}
})
.catch(error => {

View File

@ -425,7 +425,7 @@ function CoderDepot(props){
{/* 贡献者 */}
{
projectDetail && projectDetail.contributors &&
<Contributors contributors={projectDetail && projectDetail.contributors} owner={owner} projectsId={projectsId} id={projectDetail && projectDetail.project_id} showNotification={props.showNotification}/>
<Contributors contributors={projectDetail && projectDetail.contributors} owner={owner} projectsId={projectsId} />
}
{/* 语言 */}
{ projectDetail && projectDetail.languages &&