diff --git a/pages/index/index.vue b/pages/index/index.vue index ea961e9..81cd05c 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -141,6 +141,10 @@ import { getRecommendList, getRandomGreeting, getTipsList } from "@/api/system"; import { getShareToken, saveViewRequest } from "@/utils/common.js"; const countdownText = ref(""); +const recommendList = ref([]); +const page = ref(1); +const hasMore = ref(true); +const loading = ref(false); const updateCountdown = () => { const now = new Date(); @@ -283,11 +287,6 @@ const features = ref([ }, ]); -const recommendList = ref([]); -const page = ref(1); -const hasMore = ref(true); -const loading = ref(false); - const fetchRecommendList = async (isRefresh = false) => { if (loading.value || (!hasMore.value && !isRefresh)) return; loading.value = true;