diff --git a/frontend/src/business/components/track/issue/IssueList.vue b/frontend/src/business/components/track/issue/IssueList.vue index b80b102405..c5df27f2b7 100644 --- a/frontend/src/business/components/track/issue/IssueList.vue +++ b/frontend/src/business/components/track/issue/IssueList.vue @@ -281,8 +281,9 @@ export default { saveLastTableSortField(key,JSON.stringify(orders)); }, syncIssues() { - this.page.result = syncIssues(); - this.getIssues(); + this.page.result = syncIssues(() => { + this.getIssues(); + }); }, getSortField(){ let orderJsonStr = getLastTableSortField(this.tableHeaderKey); diff --git a/frontend/src/network/Issue.js b/frontend/src/network/Issue.js index 4e0d1ef898..d9af0e74a1 100644 --- a/frontend/src/network/Issue.js +++ b/frontend/src/network/Issue.js @@ -64,9 +64,11 @@ export function getRelateIssues(page) { }); } -export function syncIssues() { +export function syncIssues(success) { return get('issues/sync/' + getCurrentProjectID(), (response) => { - console.log('ok'); + if (success) { + success(response); + } }); }