diff --git a/leopard-web/src/pages/task/TaskScheduleList.tsx b/leopard-web/src/pages/task/TaskScheduleList.tsx index 2e2ea1a..a0e73e8 100644 --- a/leopard-web/src/pages/task/TaskScheduleList.tsx +++ b/leopard-web/src/pages/task/TaskScheduleList.tsx @@ -41,6 +41,7 @@ function TaskScheduleList() { }, ], ), + loadDataOnce: true, columns: [ { name: 'templateName', diff --git a/leopard-web/src/pages/task/TaskScheduleSave.tsx b/leopard-web/src/pages/task/TaskScheduleSave.tsx index 17d9426..c8c8ebe 100644 --- a/leopard-web/src/pages/task/TaskScheduleSave.tsx +++ b/leopard-web/src/pages/task/TaskScheduleSave.tsx @@ -76,7 +76,7 @@ function TaskScheduleSave() { ], }, }, - } + }, ], }, ], diff --git a/leopard-web/src/pages/task/TaskTemplateSave.tsx b/leopard-web/src/pages/task/TaskTemplateSave.tsx index c74152f..854e8ef 100644 --- a/leopard-web/src/pages/task/TaskTemplateSave.tsx +++ b/leopard-web/src/pages/task/TaskTemplateSave.tsx @@ -74,6 +74,23 @@ function TaskTemplateSave() { label: '重置', actionType: 'reset', }, + { + type: 'action', + label: '返回', + onEvent: { + click: { + actions: [ + { + actionType: 'custom', + // @ts-ignore + script: (context, action, event) => { + navigate(-1) + }, + }, + ], + }, + }, + }, ], }, ],