Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/User/Profile.vue
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | export default { | ||||
this.$root.clearFormValidation($('#user-profile form')) | this.$root.clearFormValidation($('#user-profile form')) | ||||
axios.put('/api/v4/users/' + this.$store.state.authInfo.id, this.profile) | axios.put('/api/v4/users/' + this.$store.state.authInfo.id, this.profile) | ||||
.then(response => { | .then(response => { | ||||
delete this.profile.password | delete this.profile.password | ||||
delete this.profile.password_confirm | delete this.profile.password_confirm | ||||
if (response.data.status == 'success') { | |||||
this.$toast.success(response.data.message) | this.$toast.success(response.data.message) | ||||
} | this.$router.push({ name: 'dashboard' }) | ||||
}) | }) | ||||
} | } | ||||
} | } | ||||
} | } | ||||
</script> | </script> |