0👍
This is now solved, added a
return
before
Vue.http.post(
in File2.vue
File1.vue
File2.updateNotice(this,{'id':id}).then((response) => {
console.log("response from File2 :",response)
});
File2.vue
updateNotice(context,params) {
let url = staff_service.STAFF_NOTICES_READ_RESOURCE;
return Vue.http.post(
url,
params
).then(response => {
return response;
})
}
- [Vuejs]-How do I prevent an attachment to be deleted after resetting the form fields including the trix-editor's contents?
- [Vuejs]-[Vue warn]: Error in v-on handler: "ReferenceError: fb is not defined"
Source:stackexchange.com