Bladeren bron

🎨 修改细节问题

快乐的梦鱼 2 maanden geleden
bovenliggende
commit
a4f47f1249
2 gewijzigde bestanden met toevoegingen van 11 en 11 verwijderingen
  1. 10 10
      nuxt.config.ts
  2. 1 1
      src/pages/about/index.vue

+ 10 - 10
nuxt.config.ts

@@ -30,17 +30,17 @@ export default defineNuxtConfig({
     ],
   },
   routeRules: {
-    '/**': { swr: false, isr: false, headers: { 'cache-control': 'no-store, max-age=0' } },
+    //'/**': { swr: false, isr: false, headers: { 'cache-control': 'no-store, max-age=0' } },
     
-    /*
+    /**/
     '/': { swr: 1800 },
-    '/about/': { swr: 86400 },
-    '/communicate/': { swr: 86400 },
-    '/fusion/': { swr: 86400 },
-    '/inheritor/': { swr: 3600 },
-    '/introduction/': { swr: 3600 },
-    '/news/': { swr: 3600 },
-    '/research/': { swr: 86400 },
+    '/about/': { swr: 1800 },
+    '/communicate/': { swr: 1800 },
+    '/fusion/': { swr: 1800 },
+    '/inheritor/': { swr: 1800 },
+    '/introduction/': { swr: 1800 },
+    '/news/': { swr: 1800 },
+    '/research/': { swr: 1800 },
 
     '/introduction/**': { swr: true },
     '/communicate/**': { swr: true },
@@ -49,7 +49,7 @@ export default defineNuxtConfig({
     '/news/**': { swr: true },
     '/research/**': { swr: true },
     '/village/**': { swr: true },
-    */
+    
 
     '/inheritor/submit': { ssr: false },
   }

+ 1 - 1
src/pages/about/index.vue

@@ -86,7 +86,7 @@
             v-for="(item, k) in newsLoader.list.value"
             :key="item.id"
             class="item"
-            :to="{ path: 'news/detail', query: { id: item.id }}"
+            :to="{ path: '/news/detail', query: { id: item.id }}"
           >
             <ImageTitleBlock 
               :image="item.thumbnail || item.image"