360 Secure SkillHub
360 安全技能中心

vue-router-best-practices

该 Skill 汇总 Vue Router 4/5 的路由添加、导航守卫、参数变化、重定向循环与 beforeRouteEnter 等常见问题,并链接参考文档,适合开发时查阅和排错。

分类:开发
onmax
热度 0.00
最近更新 2026-11-20 00:15:38

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add onmax/nuxt-skills/vue-router-best-practices
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
vue-router-best-practices
description
Use when adding routes or navigation guards with Vue Router 4 or 5: async guards without `next()`, redirect loops, components that keep stale data when only the params change, and `beforeRouteEnter` without `this`.
license
MIT

Vue Router best practices, common gotchas, and navigation patterns.

Navigation Guards

Route Lifecycle

Setup