From d7b81c0e599db881ce509c3b6dc9825902b8d406 Mon Sep 17 00:00:00 2001 From: qushutong <1976590620@qq.com> Date: Wed, 11 Sep 2019 16:18:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/news/banner-add-or-update.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/news/banner-add-or-update.vue b/src/views/modules/news/banner-add-or-update.vue index e352558c..f82ce8f7 100644 --- a/src/views/modules/news/banner-add-or-update.vue +++ b/src/views/modules/news/banner-add-or-update.vue @@ -198,7 +198,7 @@ export default { }, 1000, { 'leading': true, 'trailing': false }), // 上传图片 handleAvatarSuccess (res, file) { - this.dataForm.imgUrl = URL.createObjectURL(file.raw) + this.dataForm.imgUrl = res.data.url }, beforeAvatarUpload (file) { },