使用 prerenderRoutes 进行预渲染路由

8 月 20 日
阅读 3 分钟
132
title: 使用 prerenderRoutes 进行预渲染路由 date: 2024/8/20 updated: 2024/8/20 author: cmdragon

使用 preloadRouteComponents 提升 Nuxt 应用的性能

8 月 19 日
阅读 3 分钟
138
title: 使用 preloadRouteComponents 提升 Nuxt 应用的性能 date: 2024/8/19 updated: 2024/8/19 author: cmdragon

使用 preloadComponents 进行组件预加载

8 月 18 日
阅读 3 分钟
198
title: 使用 preloadComponents 进行组件预加载 date: 2024/8/18 updated: 2024/8/18 author: cmdragon

使用 prefetchComponents 进行组件预取

8 月 17 日
阅读 3 分钟
121
title: 使用 prefetchComponents 进行组件预取 date: 2024/8/17 updated: 2024/8/17 author: cmdragon

使用 onNuxtReady 进行异步初始化

8 月 16 日
阅读 3 分钟
110
title: 使用 onNuxtReady 进行异步初始化 date: 2024/8/16 updated: 2024/8/16 author: cmdragon

使用 onBeforeRouteUpdate 组合式函数提升应用的用户体验

8 月 15 日
阅读 4 分钟
150
title: 使用 onBeforeRouteUpdate 组合式函数提升应用的用户体验 date: 2024/8/15 updated: 2024/8/15 author: cmdragon

使用 onBeforeRouteLeave 组合式函数提升应用的用户体验

8 月 14 日
阅读 5 分钟
274
title: 使用 onBeforeRouteLeave 组合式函数提升应用的用户体验 date: 2024/8/14 updated: 2024/8/14 author: cmdragon

使用 navigateTo 实现灵活的路由导航

8 月 13 日
阅读 4 分钟
278
title: 使用 navigateTo 实现灵活的路由导航 date: 2024/8/13 updated: 2024/8/13 author: cmdragon

使用 Nuxt 3 的 defineRouteRules 进行页面级别的混合渲染

8 月 12 日
阅读 3 分钟
184
title: 使用 Nuxt 3 的 defineRouteRules 进行页面级别的混合渲染 date: 2024/8/12 updated: 2024/8/12 author: cmdragon

掌握 Nuxt 3 的页面元数据:使用 definePageMeta 进行自定义配置

8 月 11 日
阅读 6 分钟
554
title: 掌握 Nuxt 3 的页面元数据:使用 definePageMeta 进行自定义配置 date: 2024/8/11 updated: 2024/8/11 author: cmdragon

使用 defineNuxtRouteMiddleware 创建路由中间件

8 月 10 日
阅读 3 分钟
396
title: 使用 defineNuxtRouteMiddleware 创建路由中间件 date: 2024/8/10 updated: 2024/8/10 author: cmdragon

使用 defineNuxtComponent`定义 Vue 组件

8 月 9 日
阅读 3 分钟
122
title: 使用 defineNuxtComponent`定义 Vue 组件 date: 2024/8/9 updated: 2024/8/9 author: cmdragon

使用 createError 创建错误对象的详细指南

8 月 8 日
阅读 4 分钟
134
title: 使用 createError 创建错误对象的详细指南 date: 2024/8/8 updated: 2024/8/8 author: cmdragon

清除 Nuxt 状态缓存:clearNuxtState

8 月 7 日
阅读 3 分钟
136
title: 清除 Nuxt 状态缓存:clearNuxtState date: 2024/8/7 updated: 2024/8/7 author: cmdragon

清除 Nuxt 数据缓存:clearNuxtData

8 月 6 日
阅读 4 分钟
164
title: 清除 Nuxt 数据缓存:clearNuxtData date: 2024/8/6 updated: 2024/8/6 author: cmdragon

使用 clearError 清除已处理的错误

8 月 5 日
阅读 3 分钟
113
title: 使用 clearError 清除已处理的错误 date: 2024/8/5 updated: 2024/8/5 author: cmdragon

使用 addRouteMiddleware 动态添加中间

8 月 4 日
阅读 4 分钟
203
title: 使用 addRouteMiddleware 动态添加中间 date: 2024/8/4 updated: 2024/8/4 author: cmdragon

使用 abortNavigation 阻止导航

8 月 3 日
阅读 3 分钟
179
title: 使用 abortNavigation 阻止导航 date: 2024/8/3 updated: 2024/8/3 author: cmdragon

使用 $fetch 进行 HTTP 请求

8 月 2 日
阅读 4 分钟
207
excerpt: 摘要:文章介绍了Nuxt3中使用$fetch进行HTTP请求的方法,它是基于ofetch库,支持SSR和自动缓存。$fetch简化了HTTP请求,支持GET、POST等,可结合useAsyncData或useFetch优化数据获取,避免重复请求,适用于服务器端渲染。

使用 useState 管理响应式状态

8 月 1 日
阅读 4 分钟
242
excerpt: 摘要:本文详细介绍了在Nuxt3框架中使用useState进行响应式状态管理的方法,包括其基本概念、优势、使用方法、共享状态实现以及性能优化技巧。useState支持服务器端渲染(SSR),可创建响应式状态并在组件间共享,通过具体示例展示了其基本用法、如何在多个组件间共享状态以及使用shallowRef提升性能。

使用 `useServerSeoMeta` 优化您的网站 SEO

7 月 31 日
阅读 5 分钟
183
title: 使用 useServerSeoMeta 优化您的网站 SEO date: 2024/7/31 updated: 2024/7/31 author: cmdragon

使用 useSeoMeta 进行 SEO 配置

7 月 30 日
阅读 5 分钟
408
title: 使用 useSeoMeta 进行 SEO 配置 date: 2024/7/30 updated: 2024/7/30 author: cmdragon

Nuxt.js必读:轻松掌握运行时配置与 useRuntimeConfig

7 月 29 日
阅读 4 分钟
357
title: Nuxt.js必读:轻松掌握运行时配置与 useRuntimeConfig date: 2024/7/29 updated: 2024/7/29 author: cmdragon

Nuxt.js 路由管理:useRouter 方法与路由中间件应用

7 月 28 日
阅读 4 分钟
592
title: Nuxt.js 路由管理:useRouter 方法与路由中间件应用 date: 2024/7/28 updated: 2024/7/28 author: cmdragon

useRoute 函数的详细介绍与使用示例

7 月 27 日
阅读 3 分钟
346
title: useRoute 函数的详细介绍与使用示例 date: 2024/7/27 updated: 2024/7/27 author: cmdragon

使用 useRequestURL 组合函数访问请求URL

7 月 26 日
阅读 4 分钟
164
title: 使用 useRequestURL 组合函数访问请求URL date: 2024/7/26 updated: 2024/7/26 author: cmdragon

Nuxt.js 环境变量配置与使用

7 月 25 日
阅读 4 分钟
349
excerpt: 摘要:“该文探讨了Nuxt.js框架下环境变量配置的详细过程,涉及.env文件配置、运行时访问、安全性考量、在不同场景下的实践(如Vue应用、插件、服务器路由)及多环境配置下的最佳实践。”

服务端渲染中的数据获取:结合 useRequestHeaders 与 useFetch

7 月 24 日
阅读 2 分钟
224
title: 服务端渲染中的数据获取:结合 useRequestHeaders 与 useFetch date: 2024/7/24 updated: 2024/7/24 author: cmdragon

使用 useRequestEvent Hook 访问请求事件

7 月 23 日
阅读 3 分钟
178
title: 使用 useRequestEvent Hook 访问请求事件 date: 2024/7/23 updated: 2024/7/23 author: cmdragon

使用 useNuxtData 进行高效的数据获取与管理

7 月 22 日
阅读 4 分钟
295
title: 使用 useNuxtData 进行高效的数据获取与管理 date: 2024/7/22 updated: 2024/7/22 author: cmdragon