检查图片数量是否为6张,如果图片数量不足6张,则用本地图片补充当前位缺失的URL
<div class="right-pic-box" v-for="(i, index) in imagesWithReplacement" :key="index"><img :src="i" width="316" height="275" alt=""></div>
// 检查图片数量是否为6张,如果图片数量不足6张,则补充当前位缺失的URLimagesWithReplacement() {let urls = this.selectedItemDetails.urls;let names = urls.map(item => item.name);let add = '123456'.split('').filter(item => !names.includes(item));let result = urls.map(item => item.url);add.forEach(i => result.splice(i - 1, 0, this.replacementUrl));return result;},