Explorar o código

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

shaogen1995 %!s(int64=3) %!d(string=hai) anos
pai
achega
b27eb46104

+ 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);
     },
     // 封装获取列表函数