Commit 996a1d02943e55361122b33ed0c3ab3ea51701da
1 parent
577d2f0e
优选库——优选,“折扣专区”,除了“type=0”以外,其它页面切换都不刷新接口~
Showing
1 changed file
with
9 additions
and
2 deletions
src/pages/discountList/discountList.vue
| ... | ... | @@ -642,8 +642,15 @@ |
| 642 | 642 | // 页面显示出来了 |
| 643 | 643 | if (document.hidden === false && this.$route.name == 'discountList') { |
| 644 | 644 | |
| 645 | - // 请求接口封装 | |
| 646 | - this.request(this.tabs.active); | |
| 645 | + // 只有折扣专区的刷新页面 | |
| 646 | + if (this.tabs.list[this.tabs.active].type == '0') { | |
| 647 | + | |
| 648 | + | |
| 649 | + console.log(this.tabs.list[this.tabs.active].type); | |
| 650 | + | |
| 651 | + // 请求接口封装 | |
| 652 | + this.request(this.tabs.active); | |
| 653 | + } | |
| 647 | 654 | } |
| 648 | 655 | }); |
| 649 | 656 | } | ... | ... |