Skip to content

Commit 535fe08

Browse files
committed
fix bug
1 parent 83e8dfc commit 535fe08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ router.afterEach(() => {
8787
Vue.config.productionTip = false;
8888

8989
// 生产环境错误日志
90-
if (process.env === 'production') {
90+
if (process.env.NODE_ENV === 'production') {
9191
Vue.config.errorHandler = function(err, vm) {
9292
console.log(err, window.location.href);
9393
errLog.pushLog({

0 commit comments

Comments
 (0)