使用 nuxi build-module 命令构建 Nuxt 模块

2024-08-31
阅读 3 分钟
772
title: 使用 nuxi build-module 命令构建 Nuxt 模块 date: 2024/8/31 updated: 2024/8/31 author: cmdragon

使用 nuxi build 命令构建你的 Nuxt 应用程序

2024-08-30
阅读 3 分钟
682
title: 使用 nuxi build 命令构建你的 Nuxt 应用程序 date: 2024/8/30 updated: 2024/8/30 author: cmdragon

使用 nuxi analyze 命令分析 Nuxt 应用的生产包

2024-08-29
阅读 3 分钟
662
title: 使用 nuxi analyze 命令分析 Nuxt 应用的生产包 date: 2024/8/29 updated: 2024/8/29 author: cmdragon

使用 nuxi add 快速创建 Nuxt 应用组件

2024-08-28
阅读 3 分钟
372
title: 使用 nuxi add 快速创建 Nuxt 应用组件 date: 2024/8/28 updated: 2024/8/28 author: cmdragon

使用 updateAppConfig 更新 Nuxt 应用配置

2024-08-27
阅读 3 分钟
485
title: 使用 updateAppConfig 更新 Nuxt 应用配置 date: 2024/8/27 updated: 2024/8/27 author: cmdragon

使用 Nuxt 的 showError 显示全屏错误页面

2024-08-26
阅读 4 分钟
357
title: 使用 Nuxt 的 showError 显示全屏错误页面 date: 2024/8/26 updated: 2024/8/26 author: cmdragon

使用 setResponseStatus 函数设置响应状态码

2024-08-25
阅读 3 分钟
546
title: 使用 setResponseStatus 函数设置响应状态码 date: 2024/8/25 updated: 2024/8/25 author: cmdragon

如何在 Nuxt 中动态设置页面布局

2024-08-24
阅读 3 分钟
688
excerpt: 摘要:本文介绍如何在Nuxt框架中通过设置setPageLayout函数动态调整页面布局,包括安装Nuxt、创建不同布局文件及中间件,并通过示例演示如何根据不同路径设置相应布局。

使用 reloadNuxtApp 强制刷新 Nuxt 应用

2024-08-23
阅读 3 分钟
590
title: 使用 reloadNuxtApp 强制刷新 Nuxt 应用 date: 2024/8/22 updated: 2024/8/22 author: cmdragon

使用 refreshNuxtData 刷新 Nuxt应用 中的数据

2024-08-21
阅读 3 分钟
680
title: 使用 refreshNuxtData 刷新 Nuxt应用 中的数据 date: 2024/8/21 updated: 2024/8/21author: cmdragon

使用 prerenderRoutes 进行预渲染路由

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

使用 preloadRouteComponents 提升 Nuxt 应用的性能

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

使用 preloadComponents 进行组件预加载

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

使用 prefetchComponents 进行组件预取

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

使用 onNuxtReady 进行异步初始化

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

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

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

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

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

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

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

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

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

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

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

使用 defineNuxtRouteMiddleware 创建路由中间件

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

使用 defineNuxtComponent`定义 Vue 组件

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

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

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

清除 Nuxt 状态缓存:clearNuxtState

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

清除 Nuxt 数据缓存:clearNuxtData

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

使用 clearError 清除已处理的错误

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

使用 addRouteMiddleware 动态添加中间

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

使用 abortNavigation 阻止导航

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

使用 $fetch 进行 HTTP 请求

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

使用 useState 管理响应式状态

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