From 255e908b3510f3c6bbf09211fc608b9b72c87fa0 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 29 Jun 2021 20:04:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/business/components/track/issue/IssueList.vue | 5 +++-- frontend/src/network/Issue.js | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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); + } }); }