1
Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -70,8 +70,10 @@ | ... | @@ -70,8 +70,10 @@ |
70 | watch: { | 70 | watch: { |
71 | previewImg: { | 71 | previewImg: { |
72 | handler (newValue, oldValue) { | 72 | handler (newValue, oldValue) { |
73 | this.allLi = _.cloneDeep(newValue.imgList).map(item => item.fjurl) | 73 | if (newValue.imgList.length > 0) { |
74 | this.thumbnailImages = newValue.imgList | 74 | this.allLi = _.cloneDeep(newValue.imgList).map(item => item.fjurl) |
75 | this.thumbnailImages = newValue.imgList | ||
76 | } | ||
75 | }, | 77 | }, |
76 | deep: true | 78 | deep: true |
77 | } | 79 | } | ... | ... |
-
Please register or sign in to post a comment