<img :src="切换条件 ? require('xxx.png') : require('xxx.png')" /> 转载于:https://www.cnblogs.com/llqwm/p/9511023.html