0👍
✅
-
import img1 from '../../assets/img.png'
-
data(){
return{
img2:img1
}
} -
<XComponent :mySrc="img2" />
Source:stackexchange.com