自定义字段名称不能包含顿号
This commit is contained in:
parent
72cdbdbd11
commit
ea7fb6e058
|
@ -141,6 +141,10 @@ export default {
|
|||
this.$refs.form.validate((valid) => {
|
||||
if (valid) {
|
||||
let param = {};
|
||||
if (this.form.name.indexOf('.') > -1) {
|
||||
this.$error("名称不能包含'.'号");
|
||||
return;
|
||||
}
|
||||
Object.assign(param, this.form);
|
||||
param.workspaceId = getCurrentWorkspaceId();
|
||||
if (['select','multipleSelect','radio','checkbox'].indexOf(param.type) > -1) {
|
||||
|
|
Loading…
Reference in New Issue