首先,这里是一个 ajax(axios) 请求的自定义表单验证:
// 自定义表单验证
const customValidator = (rule, value, callback) => {
axios.get('url', {
params }).then(res => {
if (res) {
callback();
} else {
callback(new
首先,这里是一个 ajax(axios) 请求的自定义表单验证:
// 自定义表单验证
const customValidator = (rule, value, callback) => {
axios.get('url', {
params }).then(res => {
if (res) {
callback();
} else {
callback(new