From 988b4ebb834d398613fa2e1f0e3c4ca06e2d9fe0 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 22 Oct 2021 16:29:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E4=B8=8D=E8=83=BD=E5=8C=85=E5=90=AB=E9=A1=BF?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/workspace/template/CustomFieldEdit.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/business/components/settings/workspace/template/CustomFieldEdit.vue b/frontend/src/business/components/settings/workspace/template/CustomFieldEdit.vue index 910d66d55d..40e2de5ac1 100644 --- a/frontend/src/business/components/settings/workspace/template/CustomFieldEdit.vue +++ b/frontend/src/business/components/settings/workspace/template/CustomFieldEdit.vue @@ -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) {