Selaa lähdekoodia

fix:分页切换路由跳转bug

ananzhusen 1 vuosi sitten
vanhempi
sitoutus
58c0a99776
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      src/views/components/PenDatas.vue

+ 4 - 4
src/views/components/PenDatas.vue

@@ -1105,10 +1105,10 @@ const getDataset = async () => {
 };
 
 const onChangePagination = (pageInfo: any) => {
-  router.push({
-    path: route.path,
-    query: { current: pageInfo.current, pageSize: pageInfo.pageSize },
-  });
+  // router.push({
+  //   path: route.path,
+  //   query: { current: pageInfo.current, pageSize: pageInfo.pageSize },
+  // });
   query.current = pageInfo.current;
   query.pageSize = pageInfo.pageSize;
   getDataset();