Commit 996a1d02943e55361122b33ed0c3ab3ea51701da

Authored by 王强
1 parent 577d2f0e

优选库——优选,“折扣专区”,除了“type=0”以外,其它页面切换都不刷新接口~

src/pages/discountList/discountList.vue
@@ -642,8 +642,15 @@ @@ -642,8 +642,15 @@
642 // 页面显示出来了 642 // 页面显示出来了
643 if (document.hidden === false && this.$route.name == 'discountList') { 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 }