[Vuejs]-Calling an Async Function from Mounted Hook in Vuejs

0👍

I think it’s just your method that’s a bit quirky. Maybe try this:

methods: {
    async getBookingData() {
        const url = `/files/id/entries`;
        const { data } = axios.get(url);
        console.log(data);
    }
}

Leave a comment