zhangjie 2 жил өмнө
parent
commit
cdff50c706

+ 7 - 1
src/modules/grading/marker/MarkerHeader.vue

@@ -503,7 +503,13 @@ export default {
       this.pageSetChange();
     },
     pageSizeChange(size) {
-      this.setPage({ size });
+      let current = this.page.current;
+      const newTotalPage = Math.ceil(this.page.total / size);
+      if (newTotalPage < current) {
+        current = newTotalPage;
+      }
+
+      this.setPage({ size, current });
       this.pageSetChange();
     },
     pageSetChange() {