const getData = async () => {
const url = 'https://acp.privatbank.ua/api/statements/transactions?&startDate=16-08-2022&limit=1'
const token = '' // put valid token here
const response = await fetch(url, {
headers: {
'Content-Type': 'application/json;charset=cp1251',
'token': token
}
})
return await response.json()
}
const data = await getData()
FIELDS (data) {
this.fields.email = data.fields.email
//И так для каждого поля далее....
}
<span>{{ fields.email.label }}</span>
<-- и так далее... -->