From 231a7ce251b7220995580667b26f844bab2809b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Wed, 4 Jun 2025 20:46:00 +0800 Subject: [PATCH] Add pending animation (with the help of GitHub Copilot) --- components/app/windows/aboutNewsOrg.vue | 106 +++++++++++---------- components/app/windows/news.vue | 121 ++++++++++++++++++------ 2 files changed, 149 insertions(+), 78 deletions(-) diff --git a/components/app/windows/aboutNewsOrg.vue b/components/app/windows/aboutNewsOrg.vue index b3f3a65..4c780dc 100644 --- a/components/app/windows/aboutNewsOrg.vue +++ b/components/app/windows/aboutNewsOrg.vue @@ -6,7 +6,7 @@ import { ScrambleTextPlugin } from "gsap/dist/ScrambleTextPlugin"; gsap.registerPlugin(ScrambleTextPlugin); const loading = ref(true); const { t, locale } = useI18n(); -// Great, there are now no errors ig + const emit = defineEmits(["windowopener", "error", "loadValue"]); const props = defineProps({ @@ -54,61 +54,69 @@ watch( + + diff --git a/components/app/windows/news.vue b/components/app/windows/news.vue index 5c9e28d..b8365eb 100644 --- a/components/app/windows/news.vue +++ b/components/app/windows/news.vue @@ -192,6 +192,7 @@ const openNews = (url: string, titleName: string) => { const openPublisher = (slug: string, title: string) => { emit("openNewsSourcePage", slug, title); }; +const isLoading = computed(() => contentArray.value.length === 0); + +