Skip to content
Snippets Groups Projects
Commit 535fe083 authored by Pan's avatar Pan
Browse files

fix bug

parent 83e8dfc4
Branches
Tags
No related merge requests found
......@@ -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({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment