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);
}