We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83e8dfc commit 535fe08Copy full SHA for 535fe08
src/main.js
@@ -87,7 +87,7 @@ router.afterEach(() => {
87
Vue.config.productionTip = false;
88
89
// 生产环境错误日志
90
-if (process.env === 'production') {
+if (process.env.NODE_ENV === 'production') {
91
Vue.config.errorHandler = function(err, vm) {
92
console.log(err, window.location.href);
93
errLog.pushLog({
0 commit comments