I have a session in my application, where the user deactivates and activates documents, at the moment he activates or deactivates wanted to show a success alert in the vue.js pattern, but I do not know how.
methods: {
handleDesactive() {
if ( this.typeShow != 6 ) {
axios.get('/atas/${this.id}/desativar')
.then( res => eventHub.$emit('removeCard', this.id) );
alert('You clicked the button!');
} else {
axios.get('/atas/${this.id}/ativar')
.then( res => eventHub.$emit('removeCard', this.id) );
}
}
}