vue-cli introduction of local pictures

You can not write directly on the label inside the
error demonstration:

<img src="@/assets/image/worship/musiclogo.png">

By the need to require the introduction, and then call

<img :src="worshipPerson.picture">
data(){
	somedata:{},
	musicLogo:require('@/assets/image/worship/musiclogo.png'),
}
Published 11 original articles · won praise 0 · Views 128

Guess you like

Origin blog.csdn.net/baiyikai/article/details/104994878