Closed pmh1314 closed 2 years ago
能拿到router就行了,vue2就是this.$router,vue3就是useRouter
搜文档
发自我的iPhone
------------------ 原始邮件 ------------------ 发件人: pmh1314 @.> 发送时间: 2022年8月2日 12:29 收件人: zhangyuang/ssr @.> 抄送: Subscribed @.***> 主题: Re: [zhangyuang/ssr] 怎么使用路由守卫 (Issue #231)
以往纯vue项目,可以在router.beforeEach路由守卫判断是否有token等,在这个ssr框架应该怎么实现此功能??
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
以往纯vue项目,可以在router.beforeEach路由守卫判断是否有token等,在这个ssr框架应该怎么实现此功能??