Former-commit-id: 70e7e0f6992aa8b48b77b6387b638507e34c3cc2
Former-commit-id: 6c3a9e1c4df259fa365765065319484f829eac30
TSXN
wanggang 5 years ago
parent d66c90fbd5
commit 55f6b30342

@ -149,7 +149,8 @@ namespace Infrastructure.Extensions
{ {
json.format = "email"; json.format = "email";
json.ui = "string"; json.ui = "string";
json.email =new { json.email = new
{
message = "email格式错误" message = "email格式错误"
}; };
} }
@ -206,7 +207,7 @@ namespace Infrastructure.Extensions
json.maxLength = new json.maxLength = new
{ {
max = maxLengthAttribute.Length, max = maxLengthAttribute.Length,
message = maxLengthAttribute.GetErrorMessage(localizer, metadata.DisplayName,maxLengthAttribute.ToString()) message = maxLengthAttribute.GetErrorMessage(localizer, metadata.DisplayName, maxLengthAttribute.Length.ToString())
}; };
} }
else if (attribute is StringLengthAttribute stringLengthAttribute) else if (attribute is StringLengthAttribute stringLengthAttribute)

@ -146,12 +146,8 @@
} }
} }
axios.get(url).then(function (response) { axios.get(url).then(function (response) {
//if (response.data !== true) {
// vm.updateError(name, 'error');
//}
resolve(response.data === true); resolve(response.data === true);
}).catch(function () { }).catch(function () {
//vm.updateError(name, 'error');
resolve(false); resolve(false);
}); });
})) }))

Loading…
Cancel
Save