瀏覽代碼

echarts 升级到 5.6.0, main.js 文件中的引入方式有所变化

reghao 2 月之前
父節點
當前提交
dbf5364734
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      package.json
  2. 1 1
      src/main.js

+ 1 - 1
package.json

@@ -17,7 +17,7 @@
     "core-js": "^3.6.4",
     "crypto-js": "^4.1.1",
     "dplayer": "^1.26.0",
-    "echarts": "^4.9.0",
+    "echarts": "^5.6.0",
     "element-ui": "^2.15.14",
     "flv.js": "^1.6.2",
     "hls.js": "^1.1.2",

+ 1 - 1
src/main.js

@@ -34,7 +34,7 @@ import MathJax from './assets/js/mathjax'
 // import 'mathjax/es5/tex-mml-chtml'
 Vue.prototype.MathJax = MathJax
 
-import echarts from 'echarts'
+import * as echarts from 'echarts'
 Vue.prototype.$echarts = echarts
 
 import '@/permission'