Browse Source

fix: 镜像名称支持斜杠(/)

pull/159/head
cp3hnu 1 year ago
parent
commit
b1c6163c0c
6 changed files with 10 additions and 10 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. +3
    -3
      react-ui/src/pages/DevelopmentEnvironment/components/CreateMirrorModal/index.tsx
  5. +3
    -3
      react-ui/src/pages/Mirror/Create/index.tsx
  6. +1
    -1
      react-ui/src/pages/ModelDeployment/CreateVersion/index.tsx

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

@@ -125,7 +125,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

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


+ 3
- 3
react-ui/src/pages/DevelopmentEnvironment/components/CreateMirrorModal/index.tsx View File

@@ -51,8 +51,8 @@ function CreateMirrorModal({ envId, onOk, ...rest }: CreateMirrorModalProps) {
message: '请输入镜像名称',
},
{
pattern: /^[a-zA-Z0-9_-]*$/,
message: '只支持字母、数字、下划线、中横线',
pattern: /^[a-zA-Z0-9/_-]*$/,
message: '只支持字母、数字、下划线(_)、中横线(-)、斜杠(/)',
},
]}
>
@@ -68,7 +68,7 @@ function CreateMirrorModal({ envId, onOk, ...rest }: CreateMirrorModalProps) {
},
{
pattern: /^[a-zA-Z0-9_-]*$/,
message: '只支持字母、数字、下划线、中横线',
message: '只支持字母、数字、下划线(_)、中横线(-)',
},
]}
>


+ 3
- 3
react-ui/src/pages/Mirror/Create/index.tsx View File

@@ -150,8 +150,8 @@ function MirrorCreate() {
message: '请输入镜像名称',
},
{
pattern: /^[a-zA-Z0-9_-]*$/,
message: '只支持字母、数字、下划线、中横线',
pattern: /^[a-zA-Z0-9/_-]*$/,
message: '只支持字母、数字、下划线(_)、中横线(-)、斜杠(/)',
},
]}
>
@@ -178,7 +178,7 @@ function MirrorCreate() {
},
{
pattern: /^[a-zA-Z0-9_-]*$/,
message: '只支持字母、数字、下划线、中横线',
message: '只支持字母、数字、下划线(_)、中横线(-)',
},
]}
>


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

@@ -410,7 +410,7 @@ function CreateServiceVersion() {
{
pattern: /^\/[a-zA-Z0-9._/-]+$/,
message:
'请输入正确的挂载路径,以 / 开头,只支持字母、数字、点、下划线、中横线、斜杠',
'请输入正确的挂载路径,以斜杠(/)开头,只支持字母、数字、点(.)、下划线(_)、中横线(-)、斜杠(/)',
},
]}
>


Loading…
Cancel
Save