news-analyze/components/app/windows/newsView.vue
吳元皓 b62a3cda3d Add a few more database tables & made the api pull from the database
when then article exists & not ddos line today, Also made a basic
newsView with the api & the scraping script now scraps more stuff! :D
2025-05-18 11:59:58 +08:00

11 lines
382 B
Vue

<script setup lang="ts">
const { data, error, pending } = useFetch("/api/get/lt/kEJjxKw"); //demo URL
</script>
<template>
<div class="justify-center align-center text-center flex flex-col">
<h2 class="text-3xl text-bold">{{ data.title }}</h2>
<span class="text-lg text-bold"
>origin: {{ data.origin }} author: {{ data.author }}</span
>
</div>
</template>