Open Xulin-3 opened 1 year ago
@Xulin-3 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
sry, i am not actully sure about that. i write "import * as echarts from 'echarts'“ and "app.config.globalProperties.echarts = echarts" in the main.js. i can use echarts in any vue files, but it is not useful in js files.
I would suggest using vue-echarts. Otherwise, you should check your compiling configurations like webpack and etc.
What problem does this feature solve?
请问vue中的某个js文件里面想使用echarts,需要如何引入呢?
What does the proposed API look like?
请问vue中的某个js文件里面想使用echarts,需要如何引入呢?