VUE project introduces iconfont

1. Create a project

Click Resource Management -> Click My Project -> Create Project

 

2. Search for the icon you need and add it to the shopping cart

3. Click on the shopping cart and choose to add to the item

 4. Select font class -> click to download to local

 5. Unzip the compressed package. Create a new icon file under the src/assets folder. And add the contents of the decompressed folder to the icon

6. In the main.js file, import the iconfont.css style

 

 7. Normal citation icon

 

Guess you like

Origin blog.csdn.net/weixin_58421147/article/details/122856340
Recommended