1. 直接赋值
<img src="~@/assets/logo.svg" class="logo" alt="logo">
2. 动态绑定
data() {
return {
imgURL : require(`@/assets/logo.svg`);
};
},
2024-02-07 15:01:53
<img src="~@/assets/logo.svg" class="logo" alt="logo">
data() {
return {
imgURL : require(`@/assets/logo.svg`);
};
},