这个错误找了很久,原来是这样的:
<u-image v-if="baseListItem.img.length>0" :src="baseListItem.img" width='36' height='36'>
</u-image>
baseList: [{
name: 'star',
img: 'static/images/consultation/searchDoctor.png',
title: '找医生',
text: '问诊咨询'
}]
使用这样的方式错误就会重现出来
解决方案:使用绝对路径,问题就可以解决了
baseList: [{
name: 'star',
img: '/static/images/consultation/searchDoctor.png',
title: '找医生',
text: '问诊咨询'
}]