Skip to content

Commit

Permalink
feat: 增加删除项目的功能
Browse files Browse the repository at this point in the history
与后端完成对接
close #70.
  • Loading branch information
Eadral committed May 15, 2020
1 parent 9d43b48 commit 5d8487e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/react/components/pages/homepage/homePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,9 @@ export default class HomePage extends React.Component<IHomePageProps, IHomePageS

private deleteProject = async (project: IProject) => {
await this.props.actions.deleteProject(project);
const requestOptions = {
method: 'GET',
};
await fetch(`https://lyniupi.azurewebsites.net/api/DeletePro?path=${project.folderPath}`, requestOptions);
}
}

0 comments on commit 5d8487e

Please sign in to comment.