From 58cb847a13c2b11cf3021af5d7f56ca13af3f3d4 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 22 Sep 2023 15:33:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8F=90=E7=A4=BA-=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E9=9C=80=E8=A6=81=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Information/Pages/selfList.jsx | 7 +++---- src/forge/Information/fetch.js | 1 + src/forge/Information/index.jsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/forge/Information/Pages/selfList.jsx b/src/forge/Information/Pages/selfList.jsx index ab69589d1..9f87a96d1 100644 --- a/src/forge/Information/Pages/selfList.jsx +++ b/src/forge/Information/Pages/selfList.jsx @@ -21,7 +21,7 @@ function SelfList(props){ const [ deleId , setDeleId] = useState(undefined); const pathname = props.location.pathname; const { deptId} = props.match.params; - const { id , temp } = props; + const { id , temp , data } = props; const limit = 15; useEffect(()=>{ @@ -100,8 +100,7 @@ function SelfList(props){ delNewsMyList(deleId).then(response=>{ setVisible(false); if(status ===1){ - props.history.push(`/zone/${deptId}/newdetail/${deleId}`); - props.showNotification("已提交删除申请,待管理员审核通过后改文章将被删除"); + props.showNotification("提交成功!"); }else{ props.showNotification("删除成功!"); getNew(); @@ -124,7 +123,7 @@ function SelfList(props){
确定删除该{source?"资源":"文章"}?
- {(source || (!source && status === 1)) &&{source?"删除后所有资源文件将被清除,请谨慎操作":"此操作将提交删除申请,管理员同意申请后该文章将被删除"}
} + {(source || (!source && status === 1 && (data && data.docNeedAudit===1))) &&{source?"删除后所有资源文件将被清除,请谨慎操作":"此操作将提交删除申请,管理员同意申请后该文章将被删除"}
}