mounted() {
const url = "http://gallery.dev.webant.ru/api/photos"
function getUsers( mehtod, url ) {
return fetch( url, { mode: 'no-cors' } ).then( response => {
return response.json()
} )
}
getUsers( 'GET', url )
.then( data => console.log(data) )
},