From 22f4bbffe0543768f2dfa29e8db1afb31c2b1342 Mon Sep 17 00:00:00 2001 From: cp3hnu Date: Thu, 10 Oct 2024 17:25:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A8=AA=E6=9D=A0=E6=94=B9=E6=88=90?= =?UTF-8?q?=E4=B8=AD=E6=A8=AA=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/Dataset/components/AddDatasetModal/index.tsx | 2 +- react-ui/src/pages/Dataset/components/AddModelModal/index.tsx | 2 +- .../src/pages/Dataset/components/AddVersionModal/index.tsx | 2 +- react-ui/src/pages/ModelDeployment/CreateVersion/index.tsx | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/react-ui/src/pages/Dataset/components/AddDatasetModal/index.tsx b/react-ui/src/pages/Dataset/components/AddDatasetModal/index.tsx index bac2c897..87d215bd 100644 --- a/react-ui/src/pages/Dataset/components/AddDatasetModal/index.tsx +++ b/react-ui/src/pages/Dataset/components/AddDatasetModal/index.tsx @@ -123,7 +123,7 @@ function AddDatasetModal({ typeList, tagList, onOk, ...rest }: AddDatasetModalPr }, { pattern: /^[a-zA-Z0-9._-]+$/, - message: '版本只支持字母、数字、下划线、点、横杠', + message: '版本只支持字母、数字、点、下划线、中横线', }, { validator: (_rule, value) => { diff --git a/react-ui/src/pages/Dataset/components/AddModelModal/index.tsx b/react-ui/src/pages/Dataset/components/AddModelModal/index.tsx index f93eab57..663a86e7 100644 --- a/react-ui/src/pages/Dataset/components/AddModelModal/index.tsx +++ b/react-ui/src/pages/Dataset/components/AddModelModal/index.tsx @@ -108,7 +108,7 @@ function AddModelModal({ typeList, tagList, onOk, ...rest }: AddModelModalProps) }, { pattern: /^[a-zA-Z0-9._-]+$/, - message: '版本只支持字母、数字、下划线、点、横杠', + message: '版本只支持字母、数字、点、下划线、中横线', }, { validator: (_rule, value) => { diff --git a/react-ui/src/pages/Dataset/components/AddVersionModal/index.tsx b/react-ui/src/pages/Dataset/components/AddVersionModal/index.tsx index abff34a0..a91159fc 100644 --- a/react-ui/src/pages/Dataset/components/AddVersionModal/index.tsx +++ b/react-ui/src/pages/Dataset/components/AddVersionModal/index.tsx @@ -123,7 +123,7 @@ function AddVersionModal({ }, { pattern: /^[a-zA-Z0-9._-]+$/, - message: '版本只支持字母、数字、下划线、点、横杠', + message: '版本只支持字母、数字、点、下划线、中横线', }, { validator: (_rule, value) => { diff --git a/react-ui/src/pages/ModelDeployment/CreateVersion/index.tsx b/react-ui/src/pages/ModelDeployment/CreateVersion/index.tsx index 92ea62bd..364cb033 100644 --- a/react-ui/src/pages/ModelDeployment/CreateVersion/index.tsx +++ b/react-ui/src/pages/ModelDeployment/CreateVersion/index.tsx @@ -249,7 +249,7 @@ function CreateServiceVersion() { }, { pattern: /^[a-zA-Z0-9._-]+$/, - message: '版本只支持字母、数字、下划线、点、横杠', + message: '版本只支持字母、数字、点、下划线、中横线', }, ]} > @@ -417,7 +417,7 @@ function CreateServiceVersion() { { pattern: /^\/[a-zA-Z0-9._/-]+$/, message: - '请输入正确的挂载路径,以 / 开头,只支持字母、数字、点、下划线、横杠、斜杠', + '请输入正确的挂载路径,以 / 开头,只支持字母、数字、点、下划线、中横线、斜杠', }, ]} >