|
@@ -107,7 +107,7 @@
|
|
|
<el-input v-model="form.titleName" placeholder="请输入标题"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="正文" prop="textDetails">
|
|
|
- <el-input v-model="form.textDetails" type="textarea" placeholder="请输入内容"/>
|
|
|
+ <el-input v-model="form.textDetails" type="textarea" placeholder="请输入正文"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="图片" prop="imgUrlList">
|
|
|
<image-upload v-model="form.imgUrlList"/>
|
|
@@ -159,7 +159,12 @@ export default {
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
-
|
|
|
+ titleName: [
|
|
|
+ {required: true, message: "标题不能为空", trigger: "blur"},
|
|
|
+ ],
|
|
|
+ textDetails: [
|
|
|
+ {required: true, message: "正文不能为空", trigger: "blur"},
|
|
|
+ ],
|
|
|
}
|
|
|
};
|
|
|
},
|