mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Remake the home page.
This commit is contained in:
parent
5a585ddf7c
commit
34a0868b26
6 changed files with 72 additions and 7 deletions
|
@ -6,13 +6,16 @@ import Button from "~/components/ui/button/Button.vue";
|
|||
const pending = ref();
|
||||
|
||||
try {
|
||||
const { data, pending: isPending } = await useFetch("/api/rss/google");
|
||||
const { data, pending } = await useFetch("/api/rss/google");
|
||||
ffeed.value = data.value;
|
||||
} catch (error) {
|
||||
console.error("Error:", error);
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<div v-if="!ffeed">
|
||||
Loading...
|
||||
</div>
|
||||
<div
|
||||
v-for="item in ffeed"
|
||||
class="justify-center align-center text-center p-4 border border-black rounded-lg m-4"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue