How to change web icons in vue project

view 2:

The icon file of vue2 is in the public folder and is a file with the .ico suffix. We only need to put the new icon in this folder, change it to the same name, and then delete the old one to replace it.

Insert image description here
view 3:

The vue3 icon is also in the public folder, but it is an icon with a .svg suffix. You can copy the code of the svg image from the Alibaba vector icon library and replace the code in the original vite.svg file.

Insert image description here

Insert image description here
Rendering:
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_56733569/article/details/130315007