singleProduct(state, getters) {
return (id) => {
const product = getters.all.find((item) => {
return item.id.toString() === id
})
return product
}
}
created () {
fetch("https://api.agimonline.com/v1/properties/list/", {
method: "GET",
headers: {
"Access-Control-Allow-Origin": "*",
'Accept': 'application/json',
'Content-Type': 'application/json',
"X-Api-User": "###",
"X-Api-Pwd": "###,
"X-Api-Key": "###",
'Cache-Control': null,
'X-Requested-With': null
}
}
)
.then(res => res.json())
.then(data => console.log(data))
}
А доступа к серверу нету.
Я занимаюсь веб разработкой, а не математикой.