-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[vue] vue-router有哪几种导航钩子( 导航守卫 )? #415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
3种,全局的、组件的、单个路由独享的 |
三种导航钩子: |
共有三种守卫: |
???什么意思
…------------------ 原始邮件 ------------------
发件人: "LQY-3777"<notifications@github.com>;
发送时间: 2019年11月27日(星期三) 凌晨0:04
收件人: "haizlin/fe-interview"<fe-interview@noreply.github.com>;
抄送: "Coisini"<809467603@qq.com>;"Comment"<comment@noreply.github.com>;
主题: Re: [haizlin/fe-interview] [vue] vue-router有哪几种导航钩子( 导航守卫 )? (#415)
ickt-5:
https://www.cnblogs.com/kzxiaotan/p/11676872.html
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
还有一个缓存组件keep-alive的钩子,activated 每次切换回来的时候会触发,deactivated 每次离开的时候触发 |
|
1、全局守卫: router.beforeEach |
[vue] vue-router有哪几种导航钩子( 导航守卫 )?
The text was updated successfully, but these errors were encountered: