|
|
|
@ -92,7 +92,7 @@ class RepositoryAddFile extends Component {
|
|
|
|
|
if(!value){
|
|
|
|
|
callback('文件名不能为空');
|
|
|
|
|
}else if (value == "/" || value.indexOf('.') == -1 ) {
|
|
|
|
|
callback('请输入正确的文件路径,如:src/HelloWord.java');
|
|
|
|
|
callback('请输入正确的文件路径,如:src/HelloWorld.java');
|
|
|
|
|
}else{
|
|
|
|
|
callback();
|
|
|
|
|
}
|
|
|
|
@ -162,7 +162,7 @@ class RepositoryAddFile extends Component {
|
|
|
|
|
validator:this.checkPath
|
|
|
|
|
}]
|
|
|
|
|
})(
|
|
|
|
|
<Input placeholder="输入文件路径名,如:src/HelloWord.java" className="winput-300-35 fl"/>
|
|
|
|
|
<Input placeholder="输入文件路径名,如:src/HelloWorld.java" className="winput-300-35 fl"/>
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
</div>
|
|
|
|
|