primevue-mirror/service/NewsService.js

11 lines
304 B
JavaScript
Raw Normal View History

2022-04-07 12:57:53 +00:00
export default class NewsService {
2022-09-13 11:29:45 +00:00
async fetchNews() {
try {
const data = await useFetch('https://www.primefaces.org/cdn/news/primevue.json', {cache: 'no-store'})
return await data.json();
} catch (error) {
console.log(error)
}
2022-04-07 12:57:53 +00:00
}
}