fix: 代码规范
This commit is contained in:
parent
ee7de2458d
commit
255e908b35
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue