In nuxt.js: will an error be reported when src parses the value in data?


export default {
data: {

in

js

imgUrl:require(this.placeImg)

}
props: [

placeImg:{default: "~assets/img/3339.png"}

]
}

this won"t work. What it means on the Internet is that require can"t parse variables. Is there any way to solve this?

Mar.22,2021

export default {

props: {
    placeImg: require('~/assets/img/abc.png')
}
< H2 >} < / H2 >
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3f103-44812.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3f103-44812.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?