react-route-interceptor
支持 react-router 2 ~ 4 版本
-
提供 interceptor、getUserConfirmation 两个方法
-
interceptor(router/路由/,handers/*路由拦截配置*/,cancelhanlder/取消之后的回调/)
-
通过 import {interceptor,getUserConfirmation} from "react-route-interceptor" 引入
-
ignorehander 判断目标 url 是否需要做 路由拦截(例如 logon 登录页面等可以在 logon?ignorehander=true)