fix: avoid dead loop upload
parent
7464bddedd
commit
84c95cd524
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue