在我们写echarts时候排除了其他问题出现下面问题
vue.runtime.esm.js?430a:619 [Vue warn]: Error in mounted hook: "TypeError: Cannot read properties of undefined (reading 'init')" 和 TypeError: Cannot read properties of undefined (reading 'init')
可以更换引入的方式,把 import echarts from "echarts"改为 require的let echarts = require("echarts")引入即可解决问题。