diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 0b5eca189..464d0b8e1 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -126,7 +126,7 @@ export function initAxiosInterceptors(props) { let timestamp = Date.parse(new Date())/1000; if (window.location.port === "3007") { // let timestamp=railsgettimes(proxy); - console.log(timestamp) + // console.log(timestamp) railsgettimes(`${proxy}/api/main/first_stamp.json`); let newopens=md5(opens+timestamp) config.url = `${proxy}${url}`; diff --git a/public/react/src/modules/tpm/TPMIndex.js b/public/react/src/modules/tpm/TPMIndex.js index 86d0e9637..af9e17a4b 100644 --- a/public/react/src/modules/tpm/TPMIndex.js +++ b/public/react/src/modules/tpm/TPMIndex.js @@ -20,6 +20,8 @@ import TPMShixunDiscussContainer from './TPMShixunDiscussContainer'; import TPMRepositoryComponent from './TPMRepositoryComponent'; +import TPMRepositoryComponentdetails from './TPMRepositoryComponentdetails'; + import TPMRepositoryCommits from './shixunchild/Repository/TPMRepositoryCommits'; import TPMsettings from './TPMsettings/TPMsettings'; @@ -133,6 +135,11 @@ const AddFile = Loadable({ loader: () => import('./shixunchild/Repository/RepositoryAddFile'), loading: Loading, }) +// 版本库上传文件 +const Uploadfile= Loadable({ + loader: () => import('./shixunchild/Repository/RepositoryAddFileupload_file'), + loading: Loading, +}) const interceptorUrlArray = ['repository.json', 'commits.json', 'propaedeutics.json' , 'challenges.json', 'discusses.json', 'ranking_list.json', 'collaborators.json'] @@ -267,23 +274,23 @@ class TPMIndex extends Component { }); }); - this.tpmContentRequestInterceptor = axios.interceptors.request.use((config) => { - let url = config.url; - // console.log('tpmContentRequestInterceptor:', url) - for ( let i = 0; i < interceptorUrlArray.length; i++ ) { - if (url.indexOf(interceptorUrlArray[i]) != -1) { - url = url.split('?')[0] - console.log('loadingContent, url:', url) - - this.setState({ loadingContent: true }) - - cacheInterceptorUrlMap[url] = true - } - } - return config; - }, function (error) { - return Promise.reject(error); - }); + // this.tpmContentRequestInterceptor = axios.interceptors.request.use((config) => { + // let url = config.url; + // // console.log('tpmContentRequestInterceptor:', url) + // for ( let i = 0; i < interceptorUrlArray.length; i++ ) { + // if (url.indexOf(interceptorUrlArray[i]) != -1) { + // url = url.split('?')[0] + // console.log('loadingContent, url:', url) + // + // this.setState({ loadingContent: true }) + // + // cacheInterceptorUrlMap[url] = true + // } + // } + // return config; + // }, function (error) { + // return Promise.reject(error); + // }); // Add a response interceptor this.tpmContentResponseInterceptor = axios.interceptors.response.use((response) => { @@ -387,7 +394,8 @@ class TPMIndex extends Component { render() { let url = window.location.href; - let flag = url.indexOf("add_file")>-1; + let flag =false; + // url.indexOf("add_file")>-1; return (
*/}
+ {/*