Login

Problem with relative path of nuxt image

Author:neo yang Time:2021/11/20 Read: 9148

Problem with relative path of nuxt image

Right way:

If the picture is placed in static

<img src="/xxx.jpg" />

If the picture is placed in assets

<img src="~/assets/xxx.jpg" />
tags:


copyright © www.lyustu.com all rights reserved.
Theme: TheMoon V3.0. Author:neo yang