Skip to content

Commit ea74466

Browse files
luichooytangjinzhou
luichooy
authored andcommitted
fix: sFileList will be 'undefined' when run form.resetFields() (#929)
1 parent 2043203 commit ea74466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/upload/Upload.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default {
4040
},
4141
watch: {
4242
fileList(val) {
43-
this.sFileList = val;
43+
this.sFileList = val || [];
4444
},
4545
},
4646
beforeDestroy() {

0 commit comments

Comments
 (0)