笔记 2020-08-01
wxml
<van-uploader file-list="{{ fileList }}" max-count="9" deletable="{{ true }}" bind:after-read="afterRead"/>
js
afterRead:function(event){
console.log(event);
const { file } = event.detail;
const{fileList=[]} = this.data;
fileList.push({url:file.path});
this.setData({fileList})
console.log(fileList)
}