feature_0521
郑皇 5 years ago
parent c432ef5d34
commit 1e458b862a

@ -248,12 +248,10 @@ export default {
that.formValidate.logo.length <= 0
) {
that.$Message.error("请上传活动封面!");
that.loading = false;
return false;
}
if (that.formValidate.params.length <= 0) {
that.$Message.error("至少需要填写一个活动类型!");
that.loading = false;
return false;
}
for (const key in that.formValidate.params) {
@ -262,12 +260,10 @@ export default {
const element = that.formValidate.params[key];
if (element.name.length <= 0) {
that.$Message.error(`请输入类型${i}的活动类型名称!`);
that.loading = false;
return false;
}
if (element.defaultVal.length <= 0) {
that.$Message.error(`请输入类型${i}的参数!`);
that.loading = false;
return false;
}
}

Loading…
Cancel
Save