diff --git a/reading-platform-frontend/src/api/teacher.ts b/reading-platform-frontend/src/api/teacher.ts index 1ac45db..b027cff 100644 --- a/reading-platform-frontend/src/api/teacher.ts +++ b/reading-platform-frontend/src/api/teacher.ts @@ -819,9 +819,9 @@ export interface CreateTaskFromTemplateDto { } export const getTaskTemplates = (params?: { pageNum?: number; pageSize?: number }) => - http.get<{ records: any[]; total: number }>('/v1/teacher/task-templates', { params }) + http.get<{ list: any[]; total: number }>('/v1/teacher/task-templates', { params }) .then(res => ({ - items: res.records || [], + items: res.list || [], total: res.total || 0, })); diff --git a/reading-platform-frontend/src/views/teacher/tasks/TaskListView.vue b/reading-platform-frontend/src/views/teacher/tasks/TaskListView.vue index 7035111..5c01335 100644 --- a/reading-platform-frontend/src/views/teacher/tasks/TaskListView.vue +++ b/reading-platform-frontend/src/views/teacher/tasks/TaskListView.vue @@ -2,7 +2,9 @@