avatar组件是一个获取网络路径图片的组件

它再vue中使用的话build时不会被打包,路径仍然为原来的路径

所以相对路径不会有效

如下:

<Avatar style="margin-left: 10px;margin-right:10px" src="https://www.baidu.com/img/bd_logo1.png"/>
 
即使打包,依然是百度图片
以上
最后:需要依赖,依赖于iview
详情请查看https://www.iviewui.com/components/avatar

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-06-29
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
相关资源
相似解决方案