Commit 21b88bf0472488fc9c0d1fdb7493c5a0ac0b0f73
1 parent
7d4c1709
引入echarts
Showing
2 changed files
with
4 additions
and
1 deletions
jeecg-boot-master/ant-design-vue-jeecg/package.json
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | "version": "3.1.0", |
4 | 4 | "private": true, |
5 | 5 | "scripts": { |
6 | - "pre": "cnpm install || yarn --registry https://registry.npm.taobao.org || npm install --registry https://registry.npm.taobao.org ", | |
6 | + "pre": "cnpm install || yarn --registry https://registry.npm.taobao.org || npm install --registry https://registry.npm.taobao.org || npm install echarts", | |
7 | 7 | "serve": "vue-cli-service serve", |
8 | 8 | "build:test": "vue-cli-service build --mode test", |
9 | 9 | "build": "vue-cli-service build", |
... | ... | @@ -22,6 +22,7 @@ |
22 | 22 | "cron-parser": "^2.10.0", |
23 | 23 | "dayjs": "^1.8.0", |
24 | 24 | "dom-align": "1.12.0", |
25 | + "echarts": "^5.4.1", | |
25 | 26 | "enquire.js": "^2.1.6", |
26 | 27 | "js-cookie": "^2.2.0", |
27 | 28 | "jsbarcode": "^3.11.5", |
... | ... |
jeecg-boot-master/ant-design-vue-jeecg/src/main.js
... | ... | @@ -49,6 +49,7 @@ import '@/components/jeecg/JVxeTable/install' |
49 | 49 | import '@/components/JVxeCells/install' |
50 | 50 | //表单验证 |
51 | 51 | import { rules } from '@/utils/rules' |
52 | +import * as echarts from 'echarts'; | |
52 | 53 | Vue.prototype.rules = rules |
53 | 54 | Vue.config.productionTip = false |
54 | 55 | Vue.use(Storage, config.storageOptions) |
... | ... | @@ -62,6 +63,7 @@ Vue.use(preview) |
62 | 63 | Vue.use(vueBus); |
63 | 64 | Vue.use(JeecgComponents); |
64 | 65 | Vue.use(VueAreaLinkage); |
66 | +Vue.prototype.$echarts = echarts; | |
65 | 67 | |
66 | 68 | SSO.init(() => { |
67 | 69 | main() |
... | ... |