forked from Gitlink/forgeplus-react
修复无法跑起来的问题
This commit is contained in:
parent
e7b6f6fc35
commit
5f9c463b22
|
@ -25,7 +25,7 @@ if (isDev) {
|
||||||
}
|
}
|
||||||
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
|
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
|
||||||
window.location.search.indexOf('debug=s') !== -1 ? 'student' :
|
window.location.search.indexOf('debug=s') !== -1 ? 'student' :
|
||||||
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin'
|
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'a'
|
||||||
}
|
}
|
||||||
window._debugType = debugType;
|
window._debugType = debugType;
|
||||||
export function initAxiosInterceptors(props) {
|
export function initAxiosInterceptors(props) {
|
||||||
|
|
|
@ -6,7 +6,7 @@ export {
|
||||||
getUploadLogoActionUrl as getUploadLogoActionUrl,numFormat as numFormat,
|
getUploadLogoActionUrl as getUploadLogoActionUrl,numFormat as numFormat,
|
||||||
getImageUrl as getImageUrl,getImage as getImage, getmyUrl as getmyUrl, getRandomNumber as getRandomNumber, getUrl as getUrl, publicSearchs as publicSearchs, getRandomcode as getRandomcode, getUrlmys as getUrlmys, getUrl2 as getUrl2, setImagesUrl as setImagesUrl
|
getImageUrl as getImageUrl,getImage as getImage, getmyUrl as getmyUrl, getRandomNumber as getRandomNumber, getUrl as getUrl, publicSearchs as publicSearchs, getRandomcode as getRandomcode, getUrlmys as getUrlmys, getUrl2 as getUrl2, setImagesUrl as setImagesUrl
|
||||||
, getUploadActionUrl as getUploadActionUrl, getUploadActionUrltwo as getUploadActionUrltwo, getUploadActionUrlthree as getUploadActionUrlthree, getUploadActionUrlOfAuth as getUploadActionUrlOfAuth
|
, getUploadActionUrl as getUploadActionUrl, getUploadActionUrltwo as getUploadActionUrltwo, getUploadActionUrlthree as getUploadActionUrlthree, getUploadActionUrlOfAuth as getUploadActionUrlOfAuth
|
||||||
, getTaskUrlById as getTaskUrlById, TEST_HOST, htmlEncode as htmlEncode, getupload_git_file as getupload_git_file, getcdnImageUrl as getcdnImageUrl,
|
, getTaskUrlById as getTaskUrlById, TEST_HOST, htmlEncode as htmlEncode, getupload_git_file as getupload_git_file, getcdnImageUrl as getcdnImageUrl,getTestImage as getTestImage,
|
||||||
turnbar,returnbar,getUrlToken as getUrlToken
|
turnbar,returnbar,getUrlToken as getUrlToken
|
||||||
} from './UrlTool';
|
} from './UrlTool';
|
||||||
|
|
||||||
|
|
|
@ -33,12 +33,12 @@ function SiderBar() {
|
||||||
},[])
|
},[])
|
||||||
|
|
||||||
function getFAQ(){
|
function getFAQ(){
|
||||||
const url = `/faqs.json`;
|
// const url = `/faqs.json`;
|
||||||
axios.get(url).then(result=>{
|
// axios.get(url).then(result=>{
|
||||||
if(result && result.data){
|
// if(result && result.data){
|
||||||
setData(result.data);
|
// setData(result.data);
|
||||||
}
|
// }
|
||||||
}).catch(error=>{})
|
// }).catch(error=>{})
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取当前登录账号信息->用于建议反馈
|
//获取当前登录账号信息->用于建议反馈
|
||||||
|
|
Loading…
Reference in New Issue