// html
<van-form @submit="onSubmit" :key="formKey" class="purchase-wrap">
...
</van-form>
<script>
data () {
return {
formKey: 0,
...
}
},
created() {
this.formKey ++
},
</script>
vant 表单验证不通过
最新推荐文章于 2024-09-11 15:14:17 发布