diff --git a/src/api/gather/pool/pool.js b/src/api/gather/pool/pool.js index 2d6ca8a..a2fab32 100644 --- a/src/api/gather/pool/pool.js +++ b/src/api/gather/pool/pool.js @@ -12,7 +12,19 @@ export function getNav(query) { export function getTasks(queryParams) { return request({ url: '/gather/task/page', - method: 'GET', + method: 'get', params: queryParams, }); } + + +export function syncDB(tableName, dataSource) { + return request({ + url: '/gather/task/sync', + method: 'post', + params: { + dataSource: dataSource, + tableName: tableName, + } + }) +} diff --git a/src/views/gather/pool/index.vue b/src/views/gather/pool/index.vue index ba2258b..c61f536 100644 --- a/src/views/gather/pool/index.vue +++ b/src/views/gather/pool/index.vue @@ -22,7 +22,7 @@