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 @@ 重新选择 + + + + 最多上传1张图片,单个文件最大10MB,支持jpg、jpeg、png格式 + 图片比例:1.6:1 + + + @@ -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('提交成功')
最多上传1张图片,单个文件最大10MB,支持jpg、jpeg、png格式
图片比例:1.6:1