diff --git a/src/api/modules/task.api.js b/src/api/modules/task.api.js index 8cc8138..60a3161 100644 --- a/src/api/modules/task.api.js +++ b/src/api/modules/task.api.js @@ -2,5 +2,7 @@ export default ({ request }) => ({ // 获取任务信息列表 listTask (params = {}) { return request({ url: '/task/list', method: 'get', params }) }, // 新增任务信息 - addTask (data = {}) { return request({ url: '/task/add', method: 'post', data }) } + addTask (data = {}) { return request({ url: '/task/add', method: 'post', data }) }, + // 删除任务信息 + delTask (data = {}) { return request({ url: '/task/del', method: 'post', data }) }, }) diff --git a/src/views/apiTest/apiTestTask/index.vue b/src/views/apiTest/apiTestTask/index.vue index 336b218..95346f0 100644 --- a/src/views/apiTest/apiTestTask/index.vue +++ b/src/views/apiTest/apiTestTask/index.vue @@ -20,12 +20,12 @@ -