From 82f425d18e5c8d86a9444c8e2d918435bf1d5437 Mon Sep 17 00:00:00 2001 From: Heeeeee <770114245@qq.com> Date: Thu, 1 Jul 2021 08:07:34 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0echarts=205.x=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.js b/src/main.js index 4dc8377..d119222 100644 --- a/src/main.js +++ b/src/main.js @@ -24,7 +24,11 @@ import './assets/scss/style.scss'; //引入echart +//4.x 引用方式 import echarts from 'echarts' +//5.x 引用方式为按需引用 +//希望使用5.x版本的话,需要在package.json中更新版本号,并切换引用方式 +//import * as echarts from 'echarts' Vue.prototype.$echarts = echarts Vue.config.productionTip = false; -- Gitee