diff --git a/src/AppConfig.js b/src/AppConfig.js index c93b26f7c..de303a5e8 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -25,7 +25,7 @@ if (isDev) { } debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' : 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; export function initAxiosInterceptors(props) { diff --git a/src/common/educoder.js b/src/common/educoder.js index c6e07a9a6..ac44fce7f 100644 --- a/src/common/educoder.js +++ b/src/common/educoder.js @@ -6,7 +6,7 @@ export { 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 , 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 } from './UrlTool'; diff --git a/src/forge/Component/SiderBar.js b/src/forge/Component/SiderBar.js index a5c4836d9..09941701b 100644 --- a/src/forge/Component/SiderBar.js +++ b/src/forge/Component/SiderBar.js @@ -33,12 +33,12 @@ function SiderBar() { },[]) function getFAQ(){ - const url = `/faqs.json`; - axios.get(url).then(result=>{ - if(result && result.data){ - setData(result.data); - } - }).catch(error=>{}) + // const url = `/faqs.json`; + // axios.get(url).then(result=>{ + // if(result && result.data){ + // setData(result.data); + // } + // }).catch(error=>{}) } //获取当前登录账号信息->用于建议反馈