From 8b38b62df8b4173c211e80f37d13ff45969bcbdf Mon Sep 17 00:00:00 2001 From: handongxun Date: Tue, 30 Jun 2020 22:39:02 +0800 Subject: [PATCH] update: report --- packages/vue-cli-plugin-uni/lib/error-reporting.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vue-cli-plugin-uni/lib/error-reporting.js b/packages/vue-cli-plugin-uni/lib/error-reporting.js index 51fe1541c..025bc660e 100644 --- a/packages/vue-cli-plugin-uni/lib/error-reporting.js +++ b/packages/vue-cli-plugin-uni/lib/error-reporting.js @@ -40,7 +40,7 @@ class ErrorReport { cp: process.env.UNI_PLATFORM, hx: this.isInHBuilderX ? 1 : 0, et: type, - em: err + em: err.replace(/(\().+(node_modules[\/\\]@dcloudio)/g, '$1$2') }); var hash = this._getMD5(data); @@ -75,7 +75,7 @@ class ErrorReport { try { const errMsg = err.toString() - const errorIndex = this.EXCLUDE_ERROR_LIST.findIndex(item => errMsg.includes(item) >= 0) + const errorIndex = this.EXCLUDE_ERROR_LIST.findIndex(item => errMsg.includes(item)) if (errorIndex >= 0) { return false } -- GitLab