fix: 自定义字段选项值校验
This commit is contained in:
parent
18108e7d04
commit
ce186154a0
|
@ -143,7 +143,8 @@ export default {
|
|||
let param = {};
|
||||
Object.assign(param, this.form);
|
||||
param.workspaceId = getCurrentWorkspaceId();
|
||||
if (['select','multipleSelect','radio','checkbox'].indexOf(param.type) > -1 && param.options.length < 1) {
|
||||
if (['select','multipleSelect','radio','checkbox'].indexOf(param.type) > -1) {
|
||||
if (param.options.length < 1) {
|
||||
this.$warning(this.$t('custom_field.option_check'));
|
||||
return;
|
||||
}
|
||||
|
@ -153,6 +154,7 @@ export default {
|
|||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
param.options = JSON.stringify(this.form.options);
|
||||
this.result = this.$post(this.url, param, (response) => {
|
||||
this.visible = false;
|
||||
|
|
Loading…
Reference in New Issue