forked from Gitlink/forgeplus-react
删除文件
This commit is contained in:
parent
262f70e538
commit
6e7b6f3928
|
|
@ -122,9 +122,9 @@ class CoderRootFileDetail extends Component {
|
|||
|
||||
deleteFile = () => {
|
||||
const { branch, detail } = this.props;
|
||||
const { projectsId } = this.props.match.params;
|
||||
const { projectsId , owner } = this.props.match.params;
|
||||
|
||||
const url = `/repositories/${projectsId}/delete_file.json`;
|
||||
const url = `/${owner}/${projectsId}/delete_file.json`;
|
||||
axios
|
||||
.delete(url, {
|
||||
params: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue