소스 검색

improve: 切换页面初始化

From-wh 2 년 전
부모
커밋
3ad25b35c5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      template/admin/src/pages/crud/index.vue

+ 1 - 0
template/admin/src/pages/crud/index.vue

@@ -66,6 +66,7 @@ export default {
     },
   },
   beforeRouteUpdate(to, from, next) {
+    this.from.page = 1;
     this.getCrudApi(to.params.table_name);
     next();
   },