新建项目

This commit is contained in:
caishi 2023-06-21 16:13:59 +08:00
parent 53b46c837b
commit 377ebf2c53
1 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ class Index extends Component {
const {blockchain_init} = values;
axios.post(url, {
...values,
clone_addr:values.clone_addr.trim(),
clone_addr:(projectsType && projectsType === "mirror") ? values.clone_addr.trim() :undefined,
auth_password:decoderPass,
project_language_id:languageFlag ? project_language_id : undefined,
project_category_id:categoreFlag ? project_category_id : undefined,
@ -227,7 +227,7 @@ class Index extends Component {
blockchain: tokenConTri,
blockchain_token_all: 10000,
blockchain_init_token: parseInt(blockchain_init),
auth_token:gitHubUrl ? values.auth_token : undefined
auth_token:((projectsType && projectsType === "mirror") && gitHubUrl)? values.auth_token : undefined
}).then((result) => {
if (result && result.data.id) {
projectsType && projectsType !== "mirror" && this.props.showNotification(`项目创建成功!`);