has been using vue-cli as a project recently, and the symbol reference recommended by the Ali icon library cannot be used directly in the project. Looking at the iconfont.js file, it is found that it is an anonymous immediate execution function
,export
,createdmounted
the icon can be displayed normally in this way, but it always feels weird. Excuse me, is this the correct posture? Is there a better solution?