Browse Source

fix: 横杠改成中横线

pull/135/head
cp3hnu 1 year ago
parent
commit
22f4bbffe0
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      react-ui/src/pages/Dataset/components/AddDatasetModal/index.tsx
  2. +1
    -1
      react-ui/src/pages/Dataset/components/AddModelModal/index.tsx
  3. +1
    -1
      react-ui/src/pages/Dataset/components/AddVersionModal/index.tsx
  4. +2
    -2
      react-ui/src/pages/ModelDeployment/CreateVersion/index.tsx

+ 1
- 1
react-ui/src/pages/Dataset/components/AddDatasetModal/index.tsx View File

@@ -123,7 +123,7 @@ function AddDatasetModal({ typeList, tagList, onOk, ...rest }: AddDatasetModalPr
},
{
pattern: /^[a-zA-Z0-9._-]+$/,
message: '版本只支持字母、数字、下划线、点、横杠',
message: '版本只支持字母、数字、点、下划线、中横线',
},
{
validator: (_rule, value) => {


+ 1
- 1
react-ui/src/pages/Dataset/components/AddModelModal/index.tsx View File

@@ -108,7 +108,7 @@ function AddModelModal({ typeList, tagList, onOk, ...rest }: AddModelModalProps)
},
{
pattern: /^[a-zA-Z0-9._-]+$/,
message: '版本只支持字母、数字、下划线、点、横杠',
message: '版本只支持字母、数字、点、下划线、中横线',
},
{
validator: (_rule, value) => {


+ 1
- 1
react-ui/src/pages/Dataset/components/AddVersionModal/index.tsx View File

@@ -123,7 +123,7 @@ function AddVersionModal({
},
{
pattern: /^[a-zA-Z0-9._-]+$/,
message: '版本只支持字母、数字、下划线、点、横杠',
message: '版本只支持字母、数字、点、下划线、中横线',
},
{
validator: (_rule, value) => {


+ 2
- 2
react-ui/src/pages/ModelDeployment/CreateVersion/index.tsx View File

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


Loading…
Cancel
Save