forked from Gitlink/forgeplus-react
wiki主页初始化没有识别到路由里的wiki
This commit is contained in:
parent
1acb91286a
commit
d42793850d
|
@ -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({});
|
||||
|
|
Loading…
Reference in New Issue