Commit b638805e5b114a356fdae138fb0450582b068314
1 parent
e44af2a1
代码优化及Bug修复~
Showing
1 changed file
with
4 additions
and
1 deletions
src/pages/optimization/optimization.vue
| @@ -414,7 +414,7 @@ | @@ -414,7 +414,7 @@ | ||
| 414 | /* 获取商品列表数据 开始 */ | 414 | /* 获取商品列表数据 开始 */ |
| 415 | 415 | ||
| 416 | // 判断是否有数据 | 416 | // 判断是否有数据 |
| 417 | - if (datas && datas.length) { | 417 | + if (datas) { // datas肯定为数组,但是可能为空,会影响数据更新,所以不判断数组长度 |
| 418 | 418 | ||
| 419 | // 根据操作,设置列表 | 419 | // 根据操作,设置列表 |
| 420 | switch (ext.CALL_STATUS) { | 420 | switch (ext.CALL_STATUS) { |
| @@ -637,6 +637,9 @@ | @@ -637,6 +637,9 @@ | ||
| 637 | // 设置当前活动分类id | 637 | // 设置当前活动分类id |
| 638 | this.$set(this.paging, "activeId", item.id); | 638 | this.$set(this.paging, "activeId", item.id); |
| 639 | 639 | ||
| 640 | + // 上拉加载控制参数初始化 | ||
| 641 | + this.$set(this.paging, "loading", true); | ||
| 642 | + | ||
| 640 | // 初始化页码 | 643 | // 初始化页码 |
| 641 | this.$set(this.paging, "page", 1); | 644 | this.$set(this.paging, "page", 1); |
| 642 | 645 |