From f744690e929d9d6da03c5c513b3ac5497c6490ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=9D=8E=E9=9B=A8=E5=A3=B0?= <540961620@qq.com> Date: Sat, 14 Dec 2019 18:26:25 +0800 Subject: [PATCH] fix:picture is not rendered get the picture base64 asynchronously, resulting in no rendering --- components/upload/UploadList.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/upload/UploadList.jsx b/components/upload/UploadList.jsx index 845607417..ed3144f43 100644 --- a/components/upload/UploadList.jsx +++ b/components/upload/UploadList.jsx @@ -84,8 +84,8 @@ export default { previewFile(file.originFileObj, previewDataUrl => { /*eslint-disable */ file.thumbUrl = previewDataUrl; - /*eslint -enable todo */ - // this.forceUpdate() + /*eslint -enable */ + this.$forceUpdate(); }); }); });