vuejs/router

关于beforeRouteLeave是否可以访问this的问题

ArbinL opened this issue · 0 comments

Reproduction

beforeRouteLeave的this

Steps to reproduce the bug

在进阶《导航守卫》中beforeRouteLeave写的是可以访问this的,但是在进阶《组合式API》中写的是不可以访问this的,请核对!!!希望统一下。

Expected behavior

统一下关于这个组件内离开的守卫关于是否可以访问this的问题,

Actual behavior

在进阶《导航守卫》中beforeRouteLeave写的是可以访问this的,但是在进阶《组合式API》中写的是不可以访问this的,请核对!!!希望统一下。

Additional information

No response