特殊符号引发编译器报错
This commit is contained in:
@@ -555,14 +555,14 @@ const addDeviceRules = {
|
||||
message: t('page.apdevice.snFormatError'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
] as Rule[],
|
||||
] ,
|
||||
name: [
|
||||
{
|
||||
pattern: /^[^ \+\-\@\=]$|^[^ \+\-\@\=].{0,126}[^ ]$/,
|
||||
message: t('page.apdevice.nameFormatError'),
|
||||
message: t('page.apdevice.nameFormatError', { test: '@' }),
|
||||
trigger: 'blur'
|
||||
}
|
||||
] as Rule[]
|
||||
]
|
||||
};
|
||||
|
||||
// 添加设备的表单数据
|
||||
|
||||
Reference in New Issue
Block a user