From 9e4254e01f8aeb39ce9b9e3250d386b14d9e72c1 Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Wed, 25 Mar 2020 17:08:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=8F=E4=BD=9C=E8=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppConfig.js | 2 +- src/forge/Settings/Index.js | 3 +-- src/forge/Settings/Setting.js | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/AppConfig.js b/src/AppConfig.js index 406f6022..9388b124 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -39,7 +39,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 || '' + window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' } // 超管 // debugType="admin"; diff --git a/src/forge/Settings/Index.js b/src/forge/Settings/Index.js index a19b296e..7c20adee 100644 --- a/src/forge/Settings/Index.js +++ b/src/forge/Settings/Index.js @@ -22,7 +22,6 @@ const Collaborator = Loadable({ class Index extends Component{ render(){ const { projectsId } = this.props.match.params; - console.log(this.props); const { pathname } = this.props.history.location; const flag = (pathname === `/projects/${projectsId}/setting`); @@ -36,7 +35,7 @@ class Index extends Component{
{/* 协作者 */} - () } diff --git a/src/forge/Settings/Setting.js b/src/forge/Settings/Setting.js index 540e24a9..9c3ff020 100644 --- a/src/forge/Settings/Setting.js +++ b/src/forge/Settings/Setting.js @@ -32,7 +32,6 @@ class Setting extends Component{ } getInfo=()=>{ - const { current_user } = this.props; const { projectsId } = this.props.match.params; const url = `/repositories/${projectsId}/edit.json`; axios.get(url).then(result=>{