原因:直接像引入其他包一样引入了echarts

加 * 导入就可以了

import * as echarts from "echarts";