fix: avoid dead loop upload

pull/1564/head
wangxueliang 2019-12-17 19:26:52 +08:00
parent 7464bddedd
commit 84c95cd524
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ export default {
file.thumbUrl = '';
/*eslint -enable */
previewFile(file.originFileObj, previewDataUrl => {
/*eslint-disable */
file.thumbUrl = previewDataUrl;
// Need append '' to avoid dead loop
file.thumbUrl = previewDataUrl || '';
/*eslint -enable */
this.$forceUpdate();
});