YY před 2 roky
rodič
revize
de7c1d8b95
1 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. 6 2
      src/views/platmanag/goods/index.vue

+ 6 - 2
src/views/platmanag/goods/index.vue

@@ -186,8 +186,12 @@ export default {
   created() {
     this.searchOthers();
     let route = JSON.parse(sessionStorage.getItem(this.$route.path));
-    if (route) this.search(route);
-    else this.search();
+    if (route) {
+      this.search(route);
+      this.$nextTick(() => {
+        this.$refs.dataTable.setPage(route);
+      });
+    } else this.search();
   },
   methods: {
     ...dictData({ getDict: 'query' }),