visma-meglerfront / sweet-modal-vue

The sweetest library to happen to modals.
Other
757 stars 85 forks source link

How close modal in our methods? #91

Open ehsan1859 opened 5 years ago

ehsan1859 commented 5 years ago

Hi. I need to close the modal (ref="modal") after receive successful response from server. reject(orderId) { axios.post('/manage-doc', {order_id: orderId}) .then(({data}) => { if (data) { this.$refs.modal.close() }); } }) },

But it's not working... please help. Thanks for creating this plugin.