Skip to content

Commit f744690

Browse files
fix:picture is not rendered
get the picture base64 asynchronously, resulting in no rendering
1 parent c835bb8 commit f744690

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/upload/UploadList.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ export default {
8484
previewFile(file.originFileObj, previewDataUrl => {
8585
/*eslint-disable */
8686
file.thumbUrl = previewDataUrl;
87-
/*eslint -enable todo */
88-
// this.forceUpdate()
87+
/*eslint -enable */
88+
this.$forceUpdate();
8989
});
9090
});
9191
});

0 commit comments

Comments
 (0)