From bef4b3cd43b5cbe769da85d7997b343a434f7cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E4=B8=91=E8=B7=AF=E4=BA=BA?= <2278757482@qq.com> Date: Tue, 1 Jun 2021 12:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E5=9B=BE=E4=B8=8A=E4=BC=A0=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=88=A0=E9=99=A4=E6=8C=87=E5=AE=9A=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=EF=BC=8C=E9=87=8D=E6=96=B0=E8=B5=8B=E5=80=BC?= =?UTF-8?q?=E5=A4=9A=E5=9B=BE=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/articles/components/ArticleDetail.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Modules/Admin/Resources/vue-element-admin/views/articles/components/ArticleDetail.vue b/app/Modules/Admin/Resources/vue-element-admin/views/articles/components/ArticleDetail.vue index 94c3b9a..13aeb32 100644 --- a/app/Modules/Admin/Resources/vue-element-admin/views/articles/components/ArticleDetail.vue +++ b/app/Modules/Admin/Resources/vue-element-admin/views/articles/components/ArticleDetail.vue @@ -251,7 +251,7 @@ image_limit:3, // 测试 filesList: [], - + // 预览图片 dialogImageUrl: '', dialogVisible: false, disabled: false @@ -320,10 +320,12 @@ if (val.url == file.url){ // 再次点击则移除选中 that.filesList.splice(index, 1); - }else{ - that.postForm.article_images.push(val.url); + throw new Error('移除完毕'); } }); + that.filesList.forEach(function (val, index) { + that.postForm.article_images.push(val.url); + }); }, handlePictureCardPreview(file) { this.dialogImageUrl = file.url; -- Gitee