Ver código fonte

版本信息维护翻页bug修改2739

zhouna 5 anos atrás
pai
commit
669b4f26b1
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6 1
      src/components/icss/VersionInfo.vue

+ 6 - 1
src/components/icss/VersionInfo.vue

@@ -132,6 +132,7 @@
       next(vm => {
         //const pm = to.param;
         Object.assign(vm, to.params);
+        vm.inCurrentPage=to.params.currentPage;
       })
     },
     methods: {
@@ -191,6 +192,10 @@
               this.canModiId = this.list[0].id;
             }
             this.flag = false;
+            if(this.inCurrentPage!==undefined){
+              this.currentPage=this.inCurrentPage;
+              this.inCurrentPage = undefined;
+            }
           }
         }).catch((error) => {
           console.log(error);
@@ -209,7 +214,7 @@
         };
         const param = {
           name: this.filter.name.trim(),
-          current: this.currentPage,
+          current: this.inCurrentPage||this.currentPage,
           size: this.pageSize,
           productType:this.filter.type?this.filter.type:0
         };