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

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

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

  

猜你喜欢

转载自www.cnblogs.com/yinerding/p/12321831.html