fix: enable caching for RSS API and remove unnecessary item display in hot news component

This commit is contained in:
吳元皓 2025-05-08 14:20:32 +08:00
parent a5af4c04f7
commit 830dbfe7f1
2 changed files with 1 additions and 2 deletions

View File

@ -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: [

View File

@ -13,7 +13,6 @@ try {
<template>
<div v-for="item in ffeed" class="justify-center align-center text-center p-4 border border-white rounded-lg m-4">
{{ item }}
<span class="text-xl text-bold text-gray-100">{{ item.title }}
<span v-if="ass.some((app) =>
item.title.includes(app)