您即将离开腾讯云开发者社区,请注意您的账号财产安全
https://link.jianshu.com/?t=https://github.com/ReactTraining/react-router/blob/master/FAQ.md#how-do-i-access-the-history-object-outside-of-components
继续访问