[Vuejs]-How to load data into Vue component

1👍

It’s not a problem with Vue. It’s a problem with the way you fetch.

Take a look at https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API and https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch

try

...
const { daysWorked } = await fetch('https://localhost:5001/api/timeworked')
                                 .then(r=>r.json());
...

this should help.

Leave a comment