Преглед изворни кода

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();
   },