diff --git a/src/App.js b/src/App.js index a73c04d4..fd228f39 100644 --- a/src/App.js +++ b/src/App.js @@ -79,7 +79,7 @@ const Search = Loadable({ }) const ProjectIndex = Loadable({ - loader: () => import("./forge/Main/Index"), + loader: () => import("./forge/Index"), loading: Loading, }); class App extends Component { diff --git a/src/AppConfig.js b/src/AppConfig.js index 034612ec..92ed97de 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 || '' } window._debugType = debugType; export function initAxiosInterceptors(props) { diff --git a/src/forge/Index.js b/src/forge/Index.js index af4d4443..3870c088 100644 --- a/src/forge/Index.js +++ b/src/forge/Index.js @@ -69,6 +69,12 @@ class Index extends Component { )} > + ( + + )} + > );