问题原因:
一般情况下 路由跳转后,会触发componentDidMount / useEffect
App.js
这里要注意的是, 一定要把路由精准匹配(exact)给关了,不然会找不到文件
DangerRegisterView.js