Commit f3f13a7a by lixiaomin

修改商品推荐必填字段

parent 8fd3d7f2
......@@ -11,10 +11,10 @@
<el-form-item label="折扣价">
{{ form.discount }}
</el-form-item>
<el-form-item label="推荐标题" prop="name">
<el-form-item label="推荐标题" >
<el-input v-model="form.name" placeholder="请输入推荐标题" />
</el-form-item>
<el-form-item label="简述" prop="desc">
<el-form-item label="简述" >
<el-input v-model="form.desc" placeholder="请输入简述" />
</el-form-item>
<el-form-item label="推荐图" prop="pic">
......@@ -41,12 +41,12 @@ export default {
},
open: false,
rules: {
name: [
{ required: true, message: "不能为空", trigger: "blur" },
],
desc: [
{ required: true, message: "不能为空", trigger: "blur" },
],
// name: [
// { required: true, message: "不能为空", trigger: "blur" },
// ],
// desc: [
// { required: true, message: "不能为空", trigger: "blur" },
// ],
pic: [
{ required: true, message: "不能为空", trigger: "blur" },
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment