mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 15:51:01 +08:00
22 lines
541 B
Vue
22 lines
541 B
Vue
<script setup lang="ts">
|
|
const { t, locale } = useI18n();
|
|
|
|
const { data: source, pending, error } = await useFetch("/api/getData/fetchSources", {
|
|
method: "POST",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: {
|
|
lang: locale,
|
|
},
|
|
});
|
|
</script>
|
|
<template>
|
|
<div >
|
|
<div v-for="item in source?.data" :key="item.id">
|
|
<h1>{{ item.title }}</h1>
|
|
<span>{{ item.description }}</span>
|
|
<a :href="item.url">{{ item.url }}</a>
|
|
</div>
|
|
</div>
|
|
</template> |