zhiquz@163.com vor 3 Jahren
Ursprung
Commit
f8ba08546e
2 geänderte Dateien mit 9 neuen und 3 gelöschten Zeilen
  1. 2 2
      .env.production
  2. 7 1
      src/pages/order/list.vue

+ 2 - 2
.env.production

@@ -2,6 +2,6 @@
 ENV = 'production'
 
 # base api
-#VUE_APP_BASE_API = '//api.admin.app.jiuweiyun.cn/api'
+VUE_APP_BASE_API = '//api.admin.app.jiuweiyun.cn/api'
 
-VUE_APP_BASE_API = '//api.appadmin.woaidakele.cn/api'
+#VUE_APP_BASE_API = '//api.appadmin.woaidakele.cn/api'

+ 7 - 1
src/pages/order/list.vue

@@ -2039,7 +2039,13 @@ export default {
             this.loadingFull = false
             if (res.code === 200) {
               if (!this.highSearchFlag) {
-                this.getList()
+                const index = Math.ceil(this.tableTotal / this.listQuery.page_size)
+                if (this.listQuery.page_index === index) {
+                  this.listQuery.page_index = this.listQuery.page_index - 1
+                  this.getList()
+                } else {
+                  this.getList()
+                }
               } else {
                 this.submitExport()
               }