使用 prerenderRoutes 进行预渲染路由

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

使用 preloadRouteComponents 提升 Nuxt 应用的性能

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

使用 preloadComponents 进行组件预加载

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

使用 prefetchComponents 进行组件预取

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

使用 onNuxtReady 进行异步初始化

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

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

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

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

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

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

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

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

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

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

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

使用 defineNuxtRouteMiddleware 创建路由中间件

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

使用 defineNuxtComponent`定义 Vue 组件

2024-08-09
阅读 3 分钟
320
title: 使用 defineNuxtComponent`定义 Vue 组件 date: 2024/8/9 updated: 2024/8/9 author: cmdragon

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

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

清除 Nuxt 状态缓存:clearNuxtState

2024-08-07
阅读 3 分钟
343
title: 清除 Nuxt 状态缓存:clearNuxtState date: 2024/8/7 updated: 2024/8/7 author: cmdragon

清除 Nuxt 数据缓存:clearNuxtData

2024-08-06
阅读 4 分钟
401
title: 清除 Nuxt 数据缓存:clearNuxtData date: 2024/8/6 updated: 2024/8/6 author: cmdragon

使用 clearError 清除已处理的错误

2024-08-05
阅读 3 分钟
347
title: 使用 clearError 清除已处理的错误 date: 2024/8/5 updated: 2024/8/5 author: cmdragon

使用 addRouteMiddleware 动态添加中间

2024-08-04
阅读 4 分钟
464
title: 使用 addRouteMiddleware 动态添加中间 date: 2024/8/4 updated: 2024/8/4 author: cmdragon

使用 abortNavigation 阻止导航

2024-08-03
阅读 3 分钟
389
title: 使用 abortNavigation 阻止导航 date: 2024/8/3 updated: 2024/8/3 author: cmdragon

使用 $fetch 进行 HTTP 请求

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

使用 useState 管理响应式状态

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

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

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

使用 useSeoMeta 进行 SEO 配置

2024-07-30
阅读 5 分钟
870
title: 使用 useSeoMeta 进行 SEO 配置 date: 2024/7/30 updated: 2024/7/30 author: cmdragon

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

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

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

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

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

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

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

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

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

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

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

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

使用 useRequestEvent Hook 访问请求事件

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

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

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