feat: enhance DraggableWindow component with additional emit events for window control; update hotnews component to handle pending state; modify home link for improved navigation

This commit is contained in:
yuanhau 2025-05-12 21:05:14 +08:00
parent 71aac20c36
commit 57aa0aba18
4 changed files with 17 additions and 7 deletions

View file

@ -3,13 +3,15 @@ import DraggableWindow from "~/components/DraggableWindow.vue";
const ffeed = ref();
const ass = ["健康2.0", "中天", "TVBS", "香港01", "ETtoday"];
import Button from "~/components/ui/button/Button.vue";
const pending = ref();
try {
const { data } = await useFetch("/api/rss/google");
const { data, pending: isPending } = await useFetch("/api/rss/google");
ffeed.value = data.value;
} catch (error) {
console.error("Error:", error);
}
</script>
<template>
<div