0👍
✅
You can use like this:
methods: {
// ...
if(response.status===200) this.closeModal();
// ...
closeModal() {
$('#modal').modal('hide');
}
}
Source:stackexchange.com