fix bug
This commit is contained in:
@@ -87,7 +87,7 @@ router.afterEach(() => {
|
||||
Vue.config.productionTip = false;
|
||||
|
||||
// 生产环境错误日志
|
||||
if (process.env === 'production') {
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
Vue.config.errorHandler = function(err, vm) {
|
||||
console.log(err, window.location.href);
|
||||
errLog.pushLog({
|
||||
|
Reference in New Issue
Block a user