vant Uploader 点击删除触发的事件
:before-delete=“before” 事件 是一个函数,可以传递两个参数,第一个参数为地址,第二个参数是下标
自行封装的方法
before(url, index) {
let _thae = this.fist;
this.fist.filter((item, indexs) => {
if (index.index == indexs) {
this.fist.splice(indexs, 1);
}
});
return true;
},