选项 / DOM
render
- 在渲染函数中引入静态资源地址
import logo from '../assets/logo.png'
export default {
render() {
return <div>
<img alt="Vue logo" src={logo} />
</div>
}
}
2024-01-26 20:13:58
import logo from '../assets/logo.png'
export default {
render() {
return <div>
<img alt="Vue logo" src={logo} />
</div>
}
}