sync mirror

This commit is contained in:
caishi 2021-03-01 16:02:02 +08:00
parent d01e8e32d4
commit 3071c785bc
1 changed files with 1 additions and 0 deletions

View File

@ -347,6 +347,7 @@ class Detail extends Component {
const url = `/${owner}/${projectsId}/sync_mirror.json`;
axios.post(url).then(result => {
if (result && result.data && result.data.status === 0) {
this.props.showNotification("镜像同步成功!");
this.getProject(2);
} else {
this.props.showNotification("镜像同步失败!");