From 6032550938c89eece655f31bcf1b8b33c32edf31 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 7 Jul 2021 10:35:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=EF=BC=9A=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E5=86=85=E5=AE=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppConfig.js | 2 +- src/forge/Main/Index.js | 12 ++++++++++-- src/forge/Main/list.css | 11 ++++++++--- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/AppConfig.js b/src/AppConfig.js index f897831f..23c59e73 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/Main/Index.js b/src/forge/Main/Index.js index c81c4b32..3b40e392 100644 --- a/src/forge/Main/Index.js +++ b/src/forge/Main/Index.js @@ -258,7 +258,7 @@ class Index extends Component { const { projectsList , recommendList , languageList , languageId , isSpin, total, search, limit, page, typeList, categoryList } = this.state; - + let userflag = (current_user && ( current_user.login && current_user.login === "pns5oi9af" )) ? true : false; return (
@@ -266,7 +266,15 @@ class Index extends Component {
头歌开源 - 让师姐开心的玩开源 + + + {userflag ? + 让师姐开心的玩开源: + 让大学绽放开源之花 + } +

Powered by Trustie

+
+