Merge branch 'develop'

This commit is contained in:
caishi 2021-04-23 14:51:04 +08:00
commit 5fa2fd99b9
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 &&