Merge branch 'dev_management' of https://gitlink.org.cn/Gitlink/forgeplus-react into dev_management

This commit is contained in:
谢思 2024-01-30 11:10:33 +08:00
commit d0b126edbb
2 changed files with 5 additions and 5 deletions

View File

@ -232,10 +232,10 @@ class Index extends Component {
license_id:licenseFlag ? license_id : undefined,
ignore_id:ignoreFlag ? ignore_id : undefined,
// user_id:owners_id,
blockchain: tokenConTri,
blockchain_token_all: 10000,
blockchain_init_token: parseInt(blockchain_init),
auth_token:((projectsType && projectsType === "mirror") && gitHubUrl)? values.auth_token : undefined
// blockchain: tokenConTri,
// blockchain_token_all: 10000,
// blockchain_init_token: parseInt(blockchain_init),
// auth_token:((projectsType && projectsType === "mirror") && gitHubUrl)? values.auth_token : undefined
}).then((result) => {
if (result && result.data.id) {
projectsType && projectsType !== "mirror" && this.props.showNotification(`项目创建成功!`);

View File

@ -361,7 +361,7 @@ export function TPMIndexHOC(WrappedComponent) {
items.map((item, index) => {
return <a
className={`nav columnAlignCenter title1ColorSpan ${index===3? "active" :""}`}
href={ `https://testpm.trustie.net${item.path}` }
href={ `https://testpm.trustie.net/${ path.split('/')[1] === (current_user && current_user.login) ? 'prefecture' : path.split('/')[1] }${item.path}` }
onMouseOver={() => this.setState({active:item.icon}) }
onMouseLeave={() => this.setState({active:""}) }
// onMouseOver={() => setActive(item.icon)}