From b85205d85b016404f4f2539973eae8fdfd30424c Mon Sep 17 00:00:00 2001 From: mehaotian <490272692@qq.com> Date: Sat, 12 Oct 2019 18:11:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(stat)=20:=20=20=E4=BF=AE=E5=A4=8D=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E7=BB=9F=E8=AE=A1=E4=B8=8B=EF=BC=8C=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=EF=BC=88=E5=A6=82=EF=BC=9A=E7=99=BB=E5=BD=95?= =?UTF-8?q?=EF=BC=8C=E5=88=86=E4=BA=AB=EF=BC=89=E8=BF=98=E8=83=BD=E4=B8=8A?= =?UTF-8?q?=E6=8A=A5=E7=9A=84=20Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-stat/dist/index.js | 8 ++++---- packages/uni-stat/src/stat.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/uni-stat/dist/index.js b/packages/uni-stat/dist/index.js index e6123a3a2c..b157bc3483 100644 --- a/packages/uni-stat/dist/index.js +++ b/packages/uni-stat/dist/index.js @@ -650,8 +650,8 @@ class Util { // }, data: optionsData, success: () => { - // if (process.env.NODE_ENV === 'development') { - // console.log('stat request success'); + // if (process.env.NODE_ENV === 'development') { + // console.log('stat request success'); // } }, fail: (e) => { @@ -699,7 +699,7 @@ class Stat extends Util { super(); this.instance = null; // 注册拦截器 - if (typeof uni.addInterceptor === 'function') { + if (typeof uni.addInterceptor === 'function' && process.env.NODE_ENV !== 'development') { this.addInterceptorInit(); this.interceptLogin(); this.interceptShare(true); @@ -776,7 +776,7 @@ class Stat extends Util { this.self = self; if (getPageTypes(self)) { this._pageShow(self); - } else { + } else { this._applicationShow(self); } } diff --git a/packages/uni-stat/src/stat.js b/packages/uni-stat/src/stat.js index 88a74f7b80..bf5d1490a9 100644 --- a/packages/uni-stat/src/stat.js +++ b/packages/uni-stat/src/stat.js @@ -382,8 +382,8 @@ class Util { // }, data: optionsData, success: () => { - // if (process.env.NODE_ENV === 'development') { - // console.log('stat request success'); + // if (process.env.NODE_ENV === 'development') { + // console.log('stat request success'); // } }, fail: (e) => { @@ -431,7 +431,7 @@ class Stat extends Util { super() this.instance = null; // 注册拦截器 - if (typeof uni.addInterceptor === 'function') { + if (typeof uni.addInterceptor === 'function' && process.env.NODE_ENV !== 'development') { this.addInterceptorInit(); this.interceptLogin(); this.interceptShare(true); @@ -508,7 +508,7 @@ class Stat extends Util { this.self = self; if (getPageTypes(self)) { this._pageShow(self); - } else { + } else { this._applicationShow(self); } } -- GitLab