From 830dbfe7f1a61b7a478362a94c44e54af0c5e3e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Thu, 8 May 2025 14:20:32 +0800 Subject: [PATCH] fix: enable caching for RSS API and remove unnecessary item display in hot news component --- nuxt.config.ts | 2 +- pages/app/hot/index.vue | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 8c2fc6a..b7230fb 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -4,7 +4,7 @@ export default defineNuxtConfig({ routeRules: { "/": { redirect: "/home" }, "/zh_tw": { redirect: "/zh_tw/home" }, - //"/api/rss/**": { swr: 3600 }, + "/api/rss/**": { swr: 3600 }, }, css: ["~/styles/main.css"], modules: [ diff --git a/pages/app/hot/index.vue b/pages/app/hot/index.vue index 3f0fcac..d0f4b44 100644 --- a/pages/app/hot/index.vue +++ b/pages/app/hot/index.vue @@ -13,7 +13,6 @@ try {