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?
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?
export default {
props: {
placeImg: require('~/assets/img/abc.png')
}
< H2 >} < / H2 >
Previous: Deployment of angular6 production environment
Next: There is a problem with docker creating nginx container.
satisfies both the beginning of api and the need to forward to aaa, api order to bbb. api : { target: http: dev.api.aaa.cn , changeOrigin: true }, api order : { target: http: dev.api.bbb.cn , changeOr...
A sudden problem with vue-cli scaffolding today after npm run dev, there was a problem, and the final result was also successful, but the page could not be opened at all excuse me, what is the reason for this? has anyone encountered it ...
introduce error reporting ...
imagine having two components componentA, componentB componentA is a ul , and componentB is called li . < componentB vsway for = "i in list " > (while this list is an array of more than 100) v-for the same number of componentB, is there...
how to package all js and css into a js file in vue-cli, and if not, how to package app.js manifest.js vendor.js into a file ...
cnpm image-webpack-loader gifsicle build:webpack g I installed a libpng library on the server, but two more dependencies were not installed. ...