<template>
<div class="com-upload-img">
<div class="img_group">
<div class="img_box" v-if="allowAddImg">
<input type="file" accept="image/*" multiple="multiple" @change="changeImg($event)">
<div class="filter"></div>
</div>
<div class="img_box" v-for="(item,index) in imgArr" :key="index">
<div class="img_show_box">
<img :src="item" alt="">
<i class="img_delete" @click="deleteImg(index)"></i>
<!-- <i class="img_delete" @click="imgArr.splice(index,1)"></i> -->
</div>
vue中图片转换为base64上传、预览、删除
最新推荐文章于 2024-07-29 14:17:59 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)