From ee39c87bf78843046d929f04c7307435b2b7d829 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 24 Dec 2021 18:20:18 +0800 Subject: [PATCH] bug --- .../3.0.0/AppContentInfo/components/Add.vue | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/packages/3.0.0/AppContentInfo/components/Add.vue b/packages/3.0.0/AppContentInfo/components/Add.vue index e916140c..752a49ed 100644 --- a/packages/3.0.0/AppContentInfo/components/Add.vue +++ b/packages/3.0.0/AppContentInfo/components/Add.vue @@ -65,6 +65,20 @@ 重新选择 + + + + + @@ -98,6 +112,7 @@ areaId: '', files: [], categoryId: '', + pictureUrl: '', contentType: '0', areaName: '', thumbUrl: [] @@ -136,6 +151,10 @@ this.instance.post(`/app/appcontentinfo/queryDetailById?id=${id}`).then(res => { if (res.code === 0) { this.form = res.data + this.form.pictureUrl = res.data.pictureUrl ? [{ + url: res.data.pictureUrl + }] : [] + } }) }, @@ -214,7 +233,8 @@ moduleId: this.$route.query.moduleId, createUserName: this.user.info.name, createUserId: this.user.info.id, - categoryName: categoryName + categoryName: categoryName, + pictureUrl: this.form.pictureUrl.length ? this.form.pictureUrl[0].url : '' }).then(res => { if (res.code == 0) { this.$message.success('提交成功')