فهرست منبع

修复切换精品文物分页器没有回到1页码

shaogen1995 3 سال پیش
والد
کامیت
b27eb46104
3فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 1 0
      houtai/src/views/tab2/index.vue
  2. 1 0
      web/src/views/gui/compomemt/antique.vue
  3. 1 0
      webM/src/views/gui/component/antique.vue

+ 1 - 0
houtai/src/views/tab2/index.vue

@@ -228,6 +228,7 @@ export default {
     // 点击左侧的tab栏
     cutLeft (type) {
       if (type === this.formData.type) return
+      this.formData.pageNum = 1
       this.formData.type = type
       this.goodsList(this.formData)
     },

+ 1 - 0
web/src/views/gui/compomemt/antique.vue

@@ -165,6 +165,7 @@ export default {
     },
     cutType(type) {
       this.formData.type = type;
+      this.formData.pageNum = 1;
       this.goodList(this.formData);
     },
     // 分页器方法

+ 1 - 0
webM/src/views/gui/component/antique.vue

@@ -171,6 +171,7 @@ export default {
     },
     cutType(type) {
       this.formData.type = type;
+      this.formData.pageNum = 1;
       this.goodList(this.formData);
     },
     // 封装获取列表函数