fix: 计划任务名称禁用空格 (#3710)

This commit is contained in:
ssongliu 2024-01-26 13:45:56 +08:00 committed by GitHub
parent 36a253ce03
commit a6891711b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -454,7 +454,7 @@ const verifySpec = (rule: any, value: any, callback: any) => {
};
const rules = reactive({
name: [Rules.requiredInput],
name: [Rules.requiredInput, Rules.noSpace],
type: [Rules.requiredSelect],
spec: [
{ validator: verifySpec, trigger: 'blur', required: true },