From d5da4a81aaf5b13855edd876f6266af9ffaa76c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Fri, 11 Feb 2022 17:36:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 7f4bf69f..d754424b 100644 --- a/src/main.js +++ b/src/main.js @@ -19,14 +19,15 @@ import './permission' // permission control import echarts from 'echarts' import 'echarts/map/js/china.js' import * as filters from './filters' // global filters +import Print from 'vue-print-nb' + Vue.prototype.$echarts = echarts +Vue.use(Print); //注册 Vue.use(Element, { size: 'small', // set element-ui default size i18n: (key, value) => i18n.t(key, value) }) - - // register global utility filters. Object.keys(filters).forEach(key => { Vue.filter(key, filters[key])