新建页面-取消按钮

This commit is contained in:
caishi 2023-01-10 14:29:22 +08:00
parent 2438ee2e6c
commit 11ad5150ca
2 changed files with 2 additions and 1 deletions

View File

@ -635,7 +635,7 @@ class Index extends Component {
</div>
<Form.Item className="formTip mt20">
<Button type="primary" onClick={this.subMitFrom} className="mr20">{projectsType && projectsType === "mirror" ? "导入" : "创建"}项目</Button>
<Link to={'/explore'} className="btn_32">取消</Link>
<a onClick={()=>window.history.back(-1)} className="btn_32">取消</a>
</Form.Item>
</div>
</Form>

View File

@ -62,6 +62,7 @@ class Index extends Component {
const { changeIsComplete } = this.props;
changeIsComplete && changeIsComplete(true);
const file = info.file;
console.log(file);
if(file && !file.type){
let flag = this.checkFile(file.name);
if(!flag) return;