提交 535fe083 编写于 作者: P Pan

fix bug

上级 83e8dfc4
...@@ -87,7 +87,7 @@ router.afterEach(() => { ...@@ -87,7 +87,7 @@ router.afterEach(() => {
Vue.config.productionTip = false; Vue.config.productionTip = false;
// 生产环境错误日志 // 生产环境错误日志
if (process.env === 'production') { if (process.env.NODE_ENV === 'production') {
Vue.config.errorHandler = function(err, vm) { Vue.config.errorHandler = function(err, vm) {
console.log(err, window.location.href); console.log(err, window.location.href);
errLog.pushLog({ errLog.pushLog({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册