From 5b980338ed68fdb8442074521443b1112053a6d9 Mon Sep 17 00:00:00 2001 From: vanoneang <525650856@qq.com> Date: Sat, 6 Jul 2019 08:58:48 +0800 Subject: [PATCH 1/3] fix: default src; --- src/components/base/upload-imgs/index.vue | 5 +++-- src/plugins/custom/views/Demo.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/base/upload-imgs/index.vue b/src/components/base/upload-imgs/index.vue index ac320903..63305bb5 100644 --- a/src/components/base/upload-imgs/index.vue +++ b/src/components/base/upload-imgs/index.vue @@ -647,10 +647,11 @@ export default { if (this[this.globalImgPriview]) { const images = [] this.itemList.forEach((element) => { - if (element.src) { - images.push(element.src) + if (element.display) { + images.push(element.display) } }) + console.log('images', images) this[this.globalImgPriview]({ images, index, diff --git a/src/plugins/custom/views/Demo.vue b/src/plugins/custom/views/Demo.vue index 1a6b6fa4..e690cbfb 100644 --- a/src/plugins/custom/views/Demo.vue +++ b/src/plugins/custom/views/Demo.vue @@ -1,6 +1,6 @@