Remove /docs/ for now & add freelinetoday component.

This commit is contained in:
yuanhau 2025-05-20 21:48:16 +08:00
parent 62fa31ae4a
commit 9ed90af818
31 changed files with 19 additions and 17495 deletions

View 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>