This commit is contained in:
caishi 2020-09-10 09:47:09 +08:00
parent 942e88a6ea
commit 74ea4d504d
2 changed files with 2 additions and 6 deletions

View File

@ -101,10 +101,7 @@ function Dispose(props){
</div>
<p>配置脚本</p>
<div className="editorBody">
<p className="editorHead">
<span>{info}</span>
<a><i className="iconfont icon-bianji6 font-14"></i></a>
</p>
<p className="editorHead">{info}</p>
<Editor
height="300px"
language={"java"}

View File

@ -19,7 +19,6 @@ const Img = styled.img`
export default ({ data, repeatSet , chooseSteps }) => {
const [tamp, setTamp] = useState(undefined);
const [sha, setSha] = useState(undefined);
const [keys, setKeys] = useState(0);
useEffect(() => {
if (data && data.started) {
let t = parseInt(data.started) * 1000;
@ -94,7 +93,7 @@ export default ({ data, repeatSet , chooseSteps }) => {
<span className="branchsha">{data && truncateCommitId(data.build_after_sha)}</span>
</AlignCenter>
</div>
<Menu mode="inline" className="leftMenu" defaultOpenKeys={[`0`]} defaultSelectedKeys={[`${keys}`]}>
<Menu mode="inline" className="leftMenu" defaultOpenKeys={[`0`]} defaultSelectedKeys={[`0`]}>
{data && data.stages ? data.stages.map((item, key) => {
return item.steps && item.steps.length > 0 ?
<SubMenu