From 17d0e3c1a260ffa3b315e0c6d0460b2ad4b943ac Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Tue, 24 Mar 2020 15:40:22 +0800 Subject: [PATCH] get user --- src/AppConfig.js | 2 +- src/forge/Index.js | 6 ---- src/forge/Main/Detail.js | 64 +++++++++++++++++------------------- src/forge/Main/Index.js | 17 ++++++---- src/forge/New/Index.js | 10 +++--- src/modules/tpm/NewHeader.js | 25 +++++++------- 6 files changed, 58 insertions(+), 66 deletions(-) diff --git a/src/AppConfig.js b/src/AppConfig.js index 68dd5439a..d0955ca6e 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 || 'admin' + window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || '' } // 超管 // debugType="admin"; diff --git a/src/forge/Index.js b/src/forge/Index.js index e76fd4d9f..893cfc2f3 100644 --- a/src/forge/Index.js +++ b/src/forge/Index.js @@ -33,14 +33,8 @@ const ProjectDetail = Loadable({ }) class Index extends Component{ - constructor(props){ - super(props); - } - - render(){ - console.log("123",this.props); return(