新建、导入项目左侧菜单也要隐藏

This commit is contained in:
caishi 2024-06-28 15:09:38 +08:00
parent 146105ef1a
commit 95be74db3e
4 changed files with 6 additions and 10 deletions

7
package-lock.json generated
View File

@ -19733,15 +19733,13 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
"dev": true,
"optional": true
"dev": true
},
"is-glob": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
"dev": true,
"optional": true,
"requires": {
"is-extglob": "^2.1.1"
}
@ -19757,8 +19755,7 @@
"version": "3.0.0",
"resolved": "http://173.15.15.82:8081/repository/npm-all/normalize-path/-/normalize-path-3.0.0.tgz",
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
"dev": true,
"optional": true
"dev": true
},
"readdirp": {
"version": "3.6.0",

View File

@ -407,7 +407,7 @@ class Index extends Component {
const { getFieldDecorator } = this.props.form;
// 项目类型deposit-托管项目mirror-镜像项目
const { projectsType } = this.props.match.params;
const {current_user:{open_blockchain}} = this.props;
const {current_user:{open_blockchain,login}} = this.props;
const {
CategoryList,
@ -761,7 +761,7 @@ class Index extends Component {
</div>
<Form.Item className="formTip mt20">
<Button type="primary" onClick={this.subMitFrom} className="mr20">{projectsType && projectsType === "mirror" ? "导入" : "创建"}代码库</Button>
<a onClick={()=>window.history.back(-1)} className="btn_32">取消</a>
<Link to={`/${login}`} className="btn_32">取消</Link>
</Form.Item>
</div>
</Form>

View File

@ -1,5 +1,4 @@
.newPanel{
border:1px solid #eaeaea;
border-radius: 4px;
}
.newPanel_title{

View File

@ -411,7 +411,7 @@ export function TPMIndexHOC(WrappedComponent) {
{ !pathCheck && <Header {...this.state} {...this.props} {...common} publicNav={publicNav}></Header> }
{!publicNav && <div style={{height:"7vh"}}></div> }
<div className="flexTop">
{ !(this.hideNavPath(path)) &&
{/* { !(this.hideNavPath(path)) &&
<ul className="navBox">
{
items.map((item, index) => {
@ -428,7 +428,7 @@ export function TPMIndexHOC(WrappedComponent) {
})
}
</ul>
}
} */}
<div className="panelMain">
<div className="newContainer newContainers">
{