我也想解决这个问题,我现在使用过滤器解决的 <image :src="'bg/bg1.jpg' | basePath"></image> filters:{ basePath:function(value){ if(!value) return ""; return "basePath"+value; } }