mirror of https://github.com/ElemeFE/element
Upload: fix default status of fileList (#6571)
parent
f677292d86
commit
fa00fcfbf9
|
@ -127,7 +127,7 @@ export default {
|
||||||
handler(fileList) {
|
handler(fileList) {
|
||||||
this.uploadFiles = fileList.map(item => {
|
this.uploadFiles = fileList.map(item => {
|
||||||
item.uid = item.uid || (Date.now() + this.tempIndex++);
|
item.uid = item.uid || (Date.now() + this.tempIndex++);
|
||||||
item.status = 'success';
|
item.status = item.status || 'success';
|
||||||
return item;
|
return item;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue