You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f.isFunction(window.onerror) && (this.windowOnError = window.onerror), window.onerror = function (t, o, n, a, i) {
var r = t;
o && (r += "\n" + o.replace(location.origin, "")), (n || a) && (r += ":" + n + ":" + a), e.printLog({
logType: "error",
logs: [r],
noOrigin: !0
}), f.isFunction(e.windowOnError) && e.windowOnError.call(window, t, o, n, a, i)
}
这是只引入alloylever的情况,url上没有带vconsole
url带上vconsole之后
看了源码,没看出什么问题,请帮忙解决
看了一下是vconsole的问题,他里面重写了window.onerror方法
这是编译后的代码,又把e.windowOnError置为null,所以导致之前定义的window.onerror执行失败,
vconsole的下载地址是
The text was updated successfully, but these errors were encountered: