瀏覽代碼

修改图例不返回第一页

shaun-sheep 4 年之前
父節點
當前提交
cb2995fc06
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/legendLibrary/index.vue

+ 3 - 3
src/views/legendLibrary/index.vue

@@ -480,13 +480,13 @@ export default {
                 this.loading = false
             })
         },
-        getTableList() {
-            this.currentPage = 1
+        getTableList(val) {
+            this.currentPage = val || 1
             this.getTableTata()
         },
 
         updateSuccess() {
-            this.getTableList()
+            this.getTableList(this.currentPage)
         },
         addSuccess() {
             this.getTableList()