<input type="text" placeholder="Search Beers e.g. Pale Ale" v-model="input" @keyup.enter="searchBeer" />
Although i added the search function in the input, it still isn't working
const input = ref("");
let pgNo = ref(1);
let url = `https://api.punkapi.com/v2/beers?page=${pgNo.value}&per_page=12`;
const { data: beers, refresh, error} = await useFetch(
() => url
);
const searchBeer = async() => {
const formattedSearch = input.value;
url.concat(`&beer_name=${formattedSearch}`);
}