提交 a0a74538 编写于 作者: fxy060608's avatar fxy060608

fix(mp): add error

上级 86f512f1
......@@ -5809,12 +5809,11 @@ function getTarget(obj, path) {
function internalMixin(Vue) {
Vue.config.errorHandler = function(err) {
console.error(err);
/* eslint-disable no-undef */
var app = getApp();
if (app && app.onError) {
app.onError(err);
} else {
console.error(err);
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册