From c2e661b1a867d3422b7fbeb906b52ab8c2aad5b1 Mon Sep 17 00:00:00 2001 From: yoe Date: Tue, 12 May 2020 16:05:25 +0800 Subject: [PATCH] =?UTF-8?q?update=20echarts=E6=8C=82=E8=BD=BD=E5=85=A8?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 2 ++ src/views/business/staff/staff-archives/index.vue | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index 7f74cd8..d3aa9f0 100644 --- a/src/main.js +++ b/src/main.js @@ -10,6 +10,7 @@ import '@/assets/scss/index.scss' import httpRequest from '@/utils/httpRequest' // api: https://github.com/axios/axios import { isAuth } from '@/utils' // import cloneDeep from 'lodash/cloneDeep' +import echarts from 'echarts' Vue.use(VueCookie) Vue.config.productionTip = false @@ -20,6 +21,7 @@ Vue.config.productionTip = false // } // 挂载全局 +Vue.prototype.$echarts = echarts // echarts画图 Vue.prototype.$http = httpRequest // ajax请求方法 Vue.prototype.isAuth = isAuth // 权限方法 diff --git a/src/views/business/staff/staff-archives/index.vue b/src/views/business/staff/staff-archives/index.vue index ec8cb53..46b720f 100644 --- a/src/views/business/staff/staff-archives/index.vue +++ b/src/views/business/staff/staff-archives/index.vue @@ -6,8 +6,6 @@