by Garth | Oct 5, 2022 | Javascript, Vue JS
axios.post('/your-url-or-api-destination', payload)
.then((response) => {
// Show Success Message
this.$bvToast.toast('Terms and Conditions Saved', {
title: 'Success',
variant: 'success',
solid: true
});
})
.catch((error) => {
// Show Error Message
this.$bvToast.toast('Terms and Conditions Not Saved', {
title: 'Error',
variant: 'danger',
solid: true
});
});
by Garth | Sep 5, 2021 | Vue JS
save_post(id) {
if (id != null) {
// Update Existing Record
} else if (id == null) {
// Create New Record
}
},