diff --git a/frontend/src/pages/Deploy/ScheduleJob/List/index.tsx b/frontend/src/pages/Deploy/ScheduleJob/List/index.tsx index 9cc751e5..72e56c24 100644 --- a/frontend/src/pages/Deploy/ScheduleJob/List/index.tsx +++ b/frontend/src/pages/Deploy/ScheduleJob/List/index.tsx @@ -39,7 +39,7 @@ const ScheduleJobList: React.FC = () => { const [editJob, setEditJob] = useState(null); const [deleteJob, setDeleteJob] = useState(null); const [query, setQuery] = useState({ - pageNum: DEFAULT_CURRENT - 1, + pageNum: DEFAULT_CURRENT, pageSize: DEFAULT_PAGE_SIZE, jobName: '', categoryId: undefined, @@ -92,13 +92,13 @@ const ScheduleJobList: React.FC = () => { // 搜索 const handleSearch = () => { - setQuery(prev => ({...prev, pageNum: 0})); + setQuery(prev => ({...prev, pageNum: 1})); }; // 重置 const handleReset = () => { setQuery({ - pageNum: 0, + pageNum: 1, pageSize: DEFAULT_PAGE_SIZE, jobName: '', categoryId: undefined, @@ -349,7 +349,7 @@ const ScheduleJobList: React.FC = () => {