自定义字段名称不能包含顿号

This commit is contained in:
chenjianxing 2021-10-22 16:29:16 +08:00 committed by jianxing
parent 72cdbdbd11
commit ea7fb6e058
1 changed files with 4 additions and 0 deletions

View File

@ -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) {