getPatientInDateTime: function (user, datetime) {
this.$http.get('http://' + window.location.hostname + '/api/day-plans/?user=' + user.id + '&start=' + datetime
).then(response => {
console.log(response.body)
}, response => {
console.log("Ошибка получения профиля пациента")
})
}
vue.js:597 [Vue warn]: Error in render: "TypeError: Cannot read property 'get' of undefined"
(found in <Root>)
getPatientInDateTime: function (user, datetime) {
Vue.http.get('http://' + window.location.hostname + '/api/day-plans/?user=' + user.id + '&start=' + datetime
).then(response => {
console.log(response.body)
}, response => {
console.log("Ошибка получения профиля пациента")
})
}