导入echarts时用:
import echarts from 'echarts'
出现 “Cannot read property ‘init’ of undefined” 报错,改成
import * as echarts from 'echarts'
后解决。
导入echarts时用:
import echarts from 'echarts'
出现 “Cannot read property ‘init’ of undefined” 报错,改成
import * as echarts from 'echarts'
后解决。