fix: 账号ID为非必填项

This commit is contained in:
DLmaster361
2025-09-02 20:12:04 +08:00
parent 1473fa64ed
commit 8a21b3da9b
2 changed files with 0 additions and 9 deletions

Binary file not shown.

View File

@@ -1164,15 +1164,6 @@ const rules = computed(() => {
{ min: 1, max: 50, message: '用户名长度应在1-50个字符之间', trigger: 'blur' },
],
}
// 只有MAA脚本需要验证userId
if (scriptType.value === 'MAA') {
baseRules.userId = [
{ required: false, message: '请输入账号ID', trigger: 'blur' },
{ max: 50, message: '账号ID长度不能超过50个字符', trigger: 'blur' },
]
}
return baseRules
})