forked from AkkomaGang/admin-fe
fix bug
This commit is contained in:
parent
83e8dfc494
commit
535fe083e5
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue