diff --git a/package.json b/package.json index de4243add853d..c2ff218929bcb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "crawlab-ui", - "version": "0.6.0-10", + "version": "0.6.0-11", "private": false, "author": { "name": "Marvin Zhang", diff --git a/src/store/modules/task.ts b/src/store/modules/task.ts index 2db941ba1a9ce..a2e5261ebe178 100644 --- a/src/store/modules/task.ts +++ b/src/store/modules/task.ts @@ -16,7 +16,7 @@ import {translate} from '@/utils/i18n'; const t = translate; const { - put, + post, getList, } = useRequest(); @@ -116,7 +116,7 @@ const actions = { return res; }, create: async ({state, commit}: StoreActionContext, form: Task) => { - return await put(`/tasks/run`, form); + return await post(`/tasks/run`, form); }, getLogs: async ({state, commit}: StoreActionContext, id: string) => { const {page, size} = state.logPagination;