icestark icon indicating copy to clipboard operation
icestark copied to clipboard

icestark 支持路由变化拦截

Open ClarkXia opened this issue 5 years ago • 2 comments

Do you want to request a feature or report a bug?

feature

What is the current behavior?

目前 icestark 可以通过 onRouteChange 方法监听路由变化,但是不支持拦截

What is the expected behavior?

希望路由发生变化时,可以进行拦截,这样就可以再框架层面上做一些统一的路由鉴权

ClarkXia avatar Mar 11 '20 07:03 ClarkXia

临时想到个思路:可以考虑换个思路,通过阻止触发应用 mount/unmount,或者阻止应用内路由跳转的触发,实现路由拦截~

daysai avatar Apr 18 '20 06:04 daysai

anything.new?

Mulander-J avatar Apr 27 '23 10:04 Mulander-J