// 注册按钮
userRegister(){
console.log(this);
const {phone,code,password,password1} = this
(phone && code && password == password1) && this.$store.dispatch("user/userRegister",{phone,code,password,password1})
}
写注册代码时报错
解决方法:
const {phone,code,password,password1} = this;