echarts安装好之后使用会报错问题
2022-11-10 本文已影响0人
喜欢走弯路的人
在一个使用echarts时发现安装好之后使用会报错
import echarts from 'echarts;
换一种一用方式就好了
const echarts = require("echarts");
Vue.prototype.$echarts = echarts;
在一个使用echarts时发现安装好之后使用会报错
import echarts from 'echarts;
换一种一用方式就好了
const echarts = require("echarts");
Vue.prototype.$echarts = echarts;