删除文件

This commit is contained in:
caishi 2020-08-13 18:10:08 +08:00
parent 262f70e538
commit 6e7b6f3928
1 changed files with 2 additions and 2 deletions

View File

@ -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: {