Skip to content

Commit

Permalink
fix(task): fixed unable to run task in task list page
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Sep 29, 2022
1 parent a46a02e commit 052da95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crawlab-ui",
"version": "0.6.0-10",
"version": "0.6.0-11",
"private": false,
"author": {
"name": "Marvin Zhang",
Expand Down
4 changes: 2 additions & 2 deletions src/store/modules/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {translate} from '@/utils/i18n';
const t = translate;

const {
put,
post,
getList,
} = useRequest();

Expand Down Expand Up @@ -116,7 +116,7 @@ const actions = {
return res;
},
create: async ({state, commit}: StoreActionContext<TaskStoreState>, form: Task) => {
return await put(`/tasks/run`, form);
return await post(`/tasks/run`, form);
},
getLogs: async ({state, commit}: StoreActionContext<TaskStoreState>, id: string) => {
const {page, size} = state.logPagination;
Expand Down

0 comments on commit 052da95

Please sign in to comment.