diff --git a/public/react/config/webpack.config.prod.js b/public/react/config/webpack.config.prod.js index 84dbffd3b..33c778d45 100644 --- a/public/react/config/webpack.config.prod.js +++ b/public/react/config/webpack.config.prod.js @@ -322,7 +322,7 @@ module.exports = { warnings: false, compress: { drop_debugger: true, - // drop_console: true + drop_console: true } } }), diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 197aee940..9cf68503d 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -84,9 +84,9 @@ export function initAxiosInterceptors(props) { } config.url = `${proxy}${url}`; if (config.url.indexOf('?') == -1) { - config.url = `${config.url}?debug=${'teacher'}`; + config.url = `${config.url}?debug=${debugType}`; } else { - config.url = `${config.url}&debug=${'teacher'}`; + config.url = `${config.url}&debug=${debugType}`; } } else { // 加api前缀 diff --git a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js index 2eaf03b92..8bbbffa10 100644 --- a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js +++ b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js @@ -612,7 +612,7 @@ class ExerciseReviewAndAnswer extends Component{ let isStudent =this.props.isStudent(); const { current_user } = this.props // console.log(data&&data.exercise.user_name) - document.title=courseName&&courseName.name; + document.title=courseName&&courseName; return(