25892
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
<u-input v-model="forms.publishUnitName" placeholder="请输入发布单位" maxlength="16" />
|
<u-input v-model="forms.publishUnitName" placeholder="请输入发布单位" maxlength="16" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
|
||||||
<u-form-item label="正文" prop="content" required :border-bottom="false" label-position="top" class="contents">
|
<u-form-item label="正文" prop="content" :border-bottom="false" label-position="top" class="contents">
|
||||||
<u-input v-model="forms.content" placeholder="请输入正文" type="textarea" auto-height height="100" maxlength="500" />
|
<u-input v-model="forms.content" placeholder="请输入正文" type="textarea" auto-height height="100" maxlength="500" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
|
||||||
@@ -81,8 +81,13 @@ export default {
|
|||||||
return this.$u.toast('请输入发布组织')
|
return this.$u.toast('请输入发布组织')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.forms.content) {
|
var isContent = false
|
||||||
return this.$u.toast('请输入正文')
|
if (this.forms.content || this.forms.images.length > 0) {
|
||||||
|
isContent = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isContent) {
|
||||||
|
return this.$u.toast('请输入正文或图片')
|
||||||
}
|
}
|
||||||
|
|
||||||
const imgs = []
|
const imgs = []
|
||||||
|
|||||||
Reference in New Issue
Block a user