src 的值通过接口动态获取图片无法显示

一定要加上v-if 判断如:imgUrl 是个变量值

 
 <img v-if="imgUrl" :src="imgUrl" >

  

posted @ 2020-02-17 15:06  银耳钉  阅读(375)  评论(0编辑  收藏  举报