Made the basic newsView, the only issue? You need to luanch the window TWICE in order to see the window, strange behavior? this also exists before btw.

This commit is contained in:
yuanhau 2025-05-30 00:29:59 +08:00
parent 122a01fe73
commit b6f67d9db8
6 changed files with 36 additions and 15 deletions

View file

@ -1,6 +1,11 @@
<script setup lang="ts">
import { SparklesIcon, UserIcon, NewspaperIcon } from "lucide-vue-next";
const slug = "kEJjxKw";
const props = defineProps<{
values?: string;
}>();
const slug = props.values; // Make the props.values static to the window NOT the entire thing and no arrays.
// FOR THIS MODULE DO NOT USE THE ?APPNAME URL TYPE, IT WILL FALL AT ALL TIMES, I HAVE NO CLUE WHY IS BEHAVIOR HAPPENING RN?
const { data, error, pending } = useFetch(`/api/news/get/lt/${slug.trim()}`);
console.log(data.value);