From 8eae08e3f8e45d982f18aaea4298644c367e0e21 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 19 Sep 2024 19:19:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E9=95=BF=E5=BA=A6=E6=A0=A1=E9=AA=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/components/dashboard/DbToolbar.vue | 4 ++-- .../src/components/data-visualization/DvToolbar.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/components/dashboard/DbToolbar.vue b/core/core-frontend/src/components/dashboard/DbToolbar.vue index d85f86e81a..6fe5928131 100644 --- a/core/core-frontend/src/components/dashboard/DbToolbar.vue +++ b/core/core-frontend/src/components/dashboard/DbToolbar.vue @@ -105,8 +105,8 @@ const closeEditCanvasName = () => { if (inputName.value.trim() === dvInfo.value.name) { return } - if (inputName.value.trim().length > 64 || inputName.value.trim().length < 2) { - ElMessage.warning('名称字段长度2-64个字符') + if (inputName.value.trim().length > 64 || inputName.value.trim().length < 1) { + ElMessage.warning('名称字段长度1-64个字符') editCanvasName() return } diff --git a/core/core-frontend/src/components/data-visualization/DvToolbar.vue b/core/core-frontend/src/components/data-visualization/DvToolbar.vue index 93ea08ecbf..163a03f1a8 100644 --- a/core/core-frontend/src/components/data-visualization/DvToolbar.vue +++ b/core/core-frontend/src/components/data-visualization/DvToolbar.vue @@ -76,8 +76,8 @@ const closeEditCanvasName = () => { if (inputName.value.trim() === dvInfo.value.name) { return } - if (inputName.value.trim().length > 64 || inputName.value.trim().length < 2) { - ElMessage.warning('名称字段长度2-64个字符') + if (inputName.value.trim().length > 64 || inputName.value.trim().length < 1) { + ElMessage.warning('名称字段长度1-64个字符') editCanvasName() return }