const params = { } this.$refs["form1"].validate((valid) => { if (valid) { this.$axios.post(this.api.plan.insertPlan, params) }else { console.log('error submit!!'); return false; } })
添加表单验证
最新推荐文章于 2022-10-19 17:01:30 发布
const params = { } this.$refs["form1"].validate((valid) => { if (valid) { this.$axios.post(this.api.plan.insertPlan, params) }else { console.log('error submit!!'); return false; } })