fix: 代码规范

This commit is contained in:
chenjianxing 2021-06-29 20:04:39 +08:00 committed by jianxing
parent ee7de2458d
commit 255e908b35
2 changed files with 7 additions and 4 deletions

View File

@ -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);

View File

@ -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);
}
});
}