提交 b85205d8 编写于 作者: M mehaotian

fix(stat) : 修复关闭统计下,系统事件(如:登录,分享)还能上报的 Bug

上级 f325702d
...@@ -699,7 +699,7 @@ class Stat extends Util { ...@@ -699,7 +699,7 @@ class Stat extends Util {
super(); super();
this.instance = null; this.instance = null;
// 注册拦截器 // 注册拦截器
if (typeof uni.addInterceptor === 'function') { if (typeof uni.addInterceptor === 'function' && process.env.NODE_ENV !== 'development') {
this.addInterceptorInit(); this.addInterceptorInit();
this.interceptLogin(); this.interceptLogin();
this.interceptShare(true); this.interceptShare(true);
......
...@@ -431,7 +431,7 @@ class Stat extends Util { ...@@ -431,7 +431,7 @@ class Stat extends Util {
super() super()
this.instance = null; this.instance = null;
// 注册拦截器 // 注册拦截器
if (typeof uni.addInterceptor === 'function') { if (typeof uni.addInterceptor === 'function' && process.env.NODE_ENV !== 'development') {
this.addInterceptorInit(); this.addInterceptorInit();
this.interceptLogin(); this.interceptLogin();
this.interceptShare(true); this.interceptShare(true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册