From 8cc13f77e13745b5425a129a8ef02768799e1223 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Mon, 23 Nov 2020 15:23:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81-=E6=97=A0=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppConfig.js | 2 +- src/forge/DevOps/About.jsx | 10 ++++++++-- src/forge/DevOps/ops.scss | 7 +++++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/AppConfig.js b/src/AppConfig.js index d387eb1d..c81b0553 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -27,7 +27,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 || 'student' } function clearAllCookie() { cookie.remove('_educoder_session', { path: '/' }); diff --git a/src/forge/DevOps/About.jsx b/src/forge/DevOps/About.jsx index 107b351f..d3e5c184 100644 --- a/src/forge/DevOps/About.jsx +++ b/src/forge/DevOps/About.jsx @@ -8,7 +8,7 @@ import axios from "axios"; const P = styled.p` { - width: 200px; + width: 230px; line-height: 30px; font-size: 16px; color: #333; @@ -33,7 +33,6 @@ function About(props, ref) { const AuthorLogin = props.author && props.author.login; const CurrentLogin = props.current_user && props.current_user.login; - useEffect(()=>{ if(CurrentLogin === AuthorLogin){ auth('get'); @@ -127,9 +126,16 @@ function About(props, ref) {
定义DevOps工作流,帮助您检测bug、发布代码…
+ { + CurrentLogin !== AuthorLogin && (step === undefined || (step && step < 1)) && +