diff --git a/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue b/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue index f8d13ce..e817af6 100644 --- a/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue +++ b/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue @@ -94,6 +94,7 @@ :data="workResource.entpCourseWorkList" style="width: 100%; height: 100%;" v-loading="pageParams.loading" + ref="tableRef" > @@ -976,11 +977,14 @@ const showExamAnalyseDrawer = (row) => { }) } +const tableRef = ref(); const getPaginationList = ( page, limit ) => { paginationParams.pageNum = page; paginationParams.pageSize = limit; - console.log(page, limit) + //console.log(page, limit) handleQueryFromEntpCourseWork(0); + // 重置滚动条至顶部 + tableRef.value.setScrollTop(0); } const pageLoad = async() => {