Closed novasq closed 6 years ago
官方这个精简版的我用着没问题 http://echarts.baidu.com/dist/echarts.simple.min.js ,你是用了自定义构建的吗
试了下仪表盘也没问题的啊,你用的 mpvue-echarts 是最新版的不
mpvue-echarts "version": "0.2.2"
好的,非常感谢!
http://echarts.baidu.com/download.html 下载精简版
"dependencies": { "echarts": "^4.0.4", "mpvue": "^1.0.10", "mpvue-echarts": "^0.2.2", "vuex": "^2.3.1" },
import * as echarts from '@/libs/echarts.simple.min' import mpvueEcharts from 'mpvue-echarts'
同样出错: thirdScriptError this.echarts.setCanvasCreator is not a function;at pages/result/main page lifeCycleMethod onReady function TypeError: this.echarts.setCanvasCreator is not a function
参考example:mpvue-echarts/build/webpack.base.conf.js 修改 build\webpack.base.conf.js test: /.js$/, include: [resolve('src'), resolve('test')], 新增: exclude: [resolve('src/libs')],
. . . 错误信息: thirdScriptError this.echarts.setCanvasCreator is not a function;at pages/one/main page lifeCycleMethod onReady function TypeError: this.echarts.setCanvasCreator is not a function