From d42793850d85cfd204d8dd3420b750398ce277d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Fri, 7 Apr 2023 10:33:23 +0800 Subject: [PATCH] =?UTF-8?q?wiki=E4=B8=BB=E9=A1=B5=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E6=B2=A1=E6=9C=89=E8=AF=86=E5=88=AB=E5=88=B0=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E9=87=8C=E7=9A=84wiki?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Wiki/Index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forge/Wiki/Index.jsx b/src/forge/Wiki/Index.jsx index 2ab1acf0e..43a34bc3d 100644 --- a/src/forge/Wiki/Index.jsx +++ b/src/forge/Wiki/Index.jsx @@ -15,12 +15,12 @@ const InputGroup = Input.Group; const { Option } = Select; export default (props) => { - const { match, history, showNotification, project, projectDetail } = props; + const { match, history, showNotification, project, projectDetail, history:{location:{pathname}} } = props; const permission = projectDetail && projectDetail.permission && projectDetail.permission !== "Reporter"; let projectsId = match.params.projectsId; let owner = match.params.owner; - let wikiName = match.params.wikiName; + let wikiName = pathname && pathname.split('/').pop(); const [fileArrInit, setFileArrInit] = useState(null); const [checkItem, setCheckItem] = useState({}); const [itemDetail, setItemDetail] = useState({});