From 7a2920913123bb31a893701d6eeea326665a06bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Wed, 16 Oct 2019 17:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/config/webpack.config.prod.js | 2 +- public/react/src/AppConfig.js | 4 ++-- .../src/modules/courses/exercise/ExerciseReviewAndAnswer.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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(