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: - '请输入正确的挂载路径,以 / 开头,只支持字母、数字、点、下划线、横杠、斜杠', + '请输入正确的挂载路径,以 / 开头,只支持字母、数字、点、下划线、中横线、斜杠', }, ]} >