提交 8b38b62d 编写于 作者: d-u-a's avatar d-u-a

update: report

上级 c9a4c452
...@@ -40,7 +40,7 @@ class ErrorReport { ...@@ -40,7 +40,7 @@ class ErrorReport {
cp: process.env.UNI_PLATFORM, cp: process.env.UNI_PLATFORM,
hx: this.isInHBuilderX ? 1 : 0, hx: this.isInHBuilderX ? 1 : 0,
et: type, et: type,
em: err em: err.replace(/(\().+(node_modules[\/\\]@dcloudio)/g, '$1$2')
}); });
var hash = this._getMD5(data); var hash = this._getMD5(data);
...@@ -75,7 +75,7 @@ class ErrorReport { ...@@ -75,7 +75,7 @@ class ErrorReport {
try { try {
const errMsg = err.toString() 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) { if (errorIndex >= 0) {
return false return false
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册