浏览代码

fix: 切换分页不查询学生数据问题

zhangjie 1 月之前
父节点
当前提交
233d5ba766
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/render/views/ExamNumberCheck/index.vue

+ 2 - 2
src/render/views/ExamNumberCheck/index.vue

@@ -199,10 +199,10 @@ async function menuChange() {
 }
 }
 
 
 // table
 // table
-function onChangeListPage(index: number) {
+async function onChangeListPage(index: number) {
   pageNumber.value = index;
   pageNumber.value = index;
   getList();
   getList();
-  selectPage(0);
+  await onSelectStudent(0);
 }
 }
 async function onSearch(data: AllCheckFilter) {
 async function onSearch(data: AllCheckFilter) {
   await getAllStudents(data);
   await getAllStudents(data);