From 68019c12cd88e5579f458d54c489eeaa8943254a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E8=BE=B0?= Date: Mon, 12 Oct 2020 18:06:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E7=BB=86=E8=8A=82=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 2 ++ src/utils/logError.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 6722cde..ed60754 100644 --- a/src/main.js +++ b/src/main.js @@ -1,4 +1,5 @@ import Vue from 'vue' +import { logError } from '@/utils/logError' import 'normalize.css/normalize.css' // A modern alternative to CSS resets @@ -17,6 +18,7 @@ import '@/permission' // permission control Vue.use(ElementUI) Vue.config.productionTip = false +Vue.prototype.$logError = logError new Vue({ el: '#app', diff --git a/src/utils/logError.js b/src/utils/logError.js index b191e39..9aff6b3 100644 --- a/src/utils/logError.js +++ b/src/utils/logError.js @@ -1,4 +1,3 @@ -import { format } from 'core-js/fn/date' import { parseTime } from './index' import { Message } from 'element-ui' -- Gitee