name:'regis',
data(){
return {
msg : {
cadastro : 'Registro de usuário.'
},
toSave : new Form(),
id : this.$route.params.id
}
},
created (){
this.$http.get('get/' + this.id)
.then(res => res.json())
.then(toSave => this.toSave = toSave)
},
retorna esse erro no console TypeError: Cannot read property 'email' of undefined