This commit is contained in:
yanran200730
2021-12-27 14:56:42 +08:00
parent 2765b66115
commit 0014d989a0

View File

@@ -15,7 +15,7 @@
<el-input size="small" placeholder="请输入发布组织" :maxlength="50" v-model="form.publishUnitName"></el-input>
</el-form-item>
<el-form-item label="正文" style="width: 100%;" prop="content">
<el-input size="small" placeholder="请输入正文" :rows="6" :maxlength="1000" type="textarea" v-model="form.content"></el-input>
<ai-editor v-model="form.content" :instance="instance" />
</el-form-item>
<el-form-item label="图片" style="width: 100%;" prop="images">
<ai-uploader v-model="form.images" :instance="instance" :limit="9" isShowTip></ai-uploader>
@@ -80,7 +80,7 @@
confirm () {
this.$refs.form.validate((valid) => {
if (valid) {
if (!this.form.content && !this.form.content) {
if (!this.form.content && !this.form.images.length) {
return this.$message.error('请输入正文或上传图片')
}