Explorar o código

修改图例不返回第一页

shaun-sheep %!s(int64=4) %!d(string=hai) anos
pai
achega
cb2995fc06
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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()