feat: 分组名称支持更多格式

This commit is contained in:
tbphp
2025-07-16 23:42:58 +08:00
parent 035827e2d7
commit 3d9315b6a7
2 changed files with 10 additions and 7 deletions

View File

@@ -92,8 +92,8 @@ const rules: FormRules = {
trigger: ["blur", "input"],
},
{
pattern: /^[a-z]+$/,
message: "只能输入小写字母",
pattern: /^[a-z0-9_-]{3,30}$/,
message: "只能包含小写字母、数字、中划线或下划线长度3-30位",
trigger: ["blur", "input"],
},
],
@@ -330,7 +330,10 @@ async function handleSubmit() {
<h4 class="section-title">基础信息</h4>
<n-form-item label="分组名称" path="name">
<n-input v-model:value="formData.name" placeholder="请输入分组名称gemini" />
<n-input
v-model:value="formData.name"
placeholder="作为路由的一部分gemini-pro-group"
/>
</n-form-item>
<n-form-item label="显示名称" path="display_name">