diff --git a/public/react/src/modules/paths/PathDetail/DetailCards.js b/public/react/src/modules/paths/PathDetail/DetailCards.js index 1dd93daa8..e34666294 100644 --- a/public/react/src/modules/paths/PathDetail/DetailCards.js +++ b/public/react/src/modules/paths/PathDetail/DetailCards.js @@ -171,7 +171,9 @@ class DetailCards extends Component{ delecttype:false, editdelectid:undefined }) - this.getPathCardsList(); + // this.getPathCardsList(); + + this.updatapathCardsedit() } }).catch((error) => { console.log(error) diff --git a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js index 69be22f81..3c17a98f1 100644 --- a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js +++ b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js @@ -484,9 +484,10 @@ class PathDetailIndex extends Component{
{item.name} - {/* 新增allow_delete 判断是否能删除 */} + {/* 新增role 判断是否能删除 1 管理员 2 合作者 */} + { - item.allow_delete===true? + detailInfoList===undefined?"":detailInfoList.allow_add_member===true && item.role == 2? this.shanchuallow(item.id)}>:"" }