import echarts from 'echarts'
import 'echarts/map/js/china' 

解决方法, echarts 需要5.0以下

"dependencies": {
    "core-js": "^3.6.5",
    "echarts": "^4.9.0",
    "element-ui": "^2.13.2",
    "swiper": "^6.1.1",
    "vue": "^2.6.11",
    "vue-awesome-swiper": "^3.1.3",
    "vue-router": "^3.2.0"
  },

By lxcss

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注