iView 自定义表单验证validator 异步校验

首先,这里是一个 ajax(axios) 请求的自定义表单验证:javascript // 自定义表单验证 const customValidator = (rule, value, callback) => { axios.get('url', { params }).then(res => { if (res) { callback();
相关文章
相关标签/搜索