Commit 535fe083 authored by Pan's avatar Pan

fix bug

parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment