微信登录问卷表单
This commit is contained in:
@@ -37,14 +37,17 @@ export default {
|
||||
...mapActions(['getToken']),
|
||||
...mapMutations(['login']),
|
||||
handleLogin() {
|
||||
this.$refs.loginForm.validate().then(v => {
|
||||
this.$refs.loginForm.validate(v => {
|
||||
if (v) {
|
||||
this.getToken(this.form).then(() => {
|
||||
uni.navigateBack({})
|
||||
}).catch(() => 0)
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.$refs.loginForm.setRules(this.rules)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user