mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Remove /docs/ for now & add freelinetoday component.
This commit is contained in:
parent
62fa31ae4a
commit
9ed90af818
31 changed files with 19 additions and 17495 deletions
19
pages/tools/freelinetoday.vue
Normal file
19
pages/tools/freelinetoday.vue
Normal file
|
@ -0,0 +1,19 @@
|
|||
<script setup lang="ts">
|
||||
const errore = ref(false);
|
||||
const route = useRoute();
|
||||
const article = route.query.article;
|
||||
const buildUrl = "/api/news/get/lt/" + article;
|
||||
if (!article) {
|
||||
errore.value = true;
|
||||
}
|
||||
const { data, error, pending } = await useFetch(buildUrl);
|
||||
</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 class="test-center" v-for="item in data.paragraph">{{ item }}</div>
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue