fix: The validation prompt for the JSON input box is incorrect (#3954)

This commit is contained in:
shaohuzhang1 2025-08-28 11:29:35 +08:00 committed by GitHub
parent 269c12b737
commit e23d413f97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,7 @@ const validate_rules = (rule: any, value: any, callback: any) => {
try {
JSON.parse(model_value.value)
} catch (e) {
callback(new Error(t('dynamicsForm.tip.requiredMessage')))
callback(new Error(t('dynamicsForm.tip.jsonMessage')))
return false
}
}