javascript
methods: {
submit(ref) {
this.$refs[ref].validate().then(res => {
console.log('success', res);
uni.showToast({
title:校验通过
})
}).catch(err => {
console.log('err', err);
})
},
}报错
VM2085 WAService.js:1 TypeError: Cannot read property 'validate' of undefined

3***@qq.com
- 发布:2022-07-26 17:19
- 更新:2022-07-26 22:06
- 阅读:268
1 个回复
DCloud_UNI_WZF
提供下可复现 demo