Use the img tag to display svg in vue

In order to make it easier to use and read the code, the component that introduced the svg graph was replaced with an img tag in the project, but the svg was not displayed. Later, it was found that the component image can be displayed normally when it is placed in the assets folder (in the custom svg -In the icon component, the address of the imported image is in the icons of the same level as assets)

The svg on the left cannot be displayed normally

Acho que você gosta

Origin blog.csdn.net/m0_65835778/article/details/129092408
Recomendado
Clasificación