export function Validate (_this,form,callback){
var loadinginstace
loadinginstace = Toast.loading({
duration: 15000,
message: '加载中',
forbidClick: true
})
if (_this.timeout !== null) clearTimeout(_this.timeout);
_this.timeout = setTimeout(() => {
_this.$refs[form].validate((valid) => {
if (valid) {
callback(true)
loadinginstace.clear()
} else {
loadinginstace.clear()
return false;
}
});
}, 1000);
}
提交、修改防抖节流,封装
最新推荐文章于 2025-12-08 09:30:06 发布
388

被折叠的 条评论
为什么被折叠?



