Merge pull request '修改开源夏令营帮助中心对应的wiki仓库' (#365) from durian/forgeplus-react:gitlink_server into gitlink_server

This commit is contained in:
xxq250 2022-05-05 15:01:20 +08:00
commit b5d65e5311
1 changed files with 6 additions and 6 deletions

View File

@ -14,9 +14,9 @@ function Help(props) {
// wiki // wiki
useEffect(()=>{ useEffect(()=>{
wikiPages({ wikiPages({
owner: locationStatus ? 'GLCC' : 'forgetest2', owner: locationStatus ? 'CCF-GLCC' : 'forgetest2',
repo: locationStatus ? 'glcc2022' : 'wiki1', repo: locationStatus ? 'glcc-help' : 'wiki1',
projectId: locationStatus ? '1403785' : '546103' projectId: locationStatus ? '1403908' : '546103'
}).then(res => { }).then(res => {
if (res && res.message === "200" && Array.isArray(res.data)) { if (res && res.message === "200" && Array.isArray(res.data)) {
setFileArrInit(res.data); setFileArrInit(res.data);
@ -32,10 +32,10 @@ function Help(props) {
// wiki // wiki
useEffect(() => { useEffect(() => {
checkItem.name && getWiki({ checkItem.name && getWiki({
owner: locationStatus ? 'GLCC' : 'forgetest2', owner: locationStatus ? 'CCF-GLCC' : 'forgetest2',
repo: locationStatus ? 'glcc2022' : 'wiki1', repo: locationStatus ? 'glcc-help' : 'wiki1',
pagename: checkItem.name, pagename: checkItem.name,
projectId: locationStatus ? '1403785' : '546103' projectId: locationStatus ? '1403908' : '546103'
}).then(res => { }).then(res => {
if (res && res.message === "200") { if (res && res.message === "200") {
setItemDetail(res.data); setItemDetail(res.data);