wiki主页初始化没有识别到路由里的wiki

This commit is contained in:
谢思 2023-04-07 10:33:23 +08:00
parent 1acb91286a
commit d42793850d
1 changed files with 2 additions and 2 deletions

View File

@ -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({});