Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
556 views
in Technique[技术] by (71.8m points)

react-router里面怎么不让某个子路由加载父组件?

clipboard.png

clipboard.png

这是一个毕业设计的网站,我的意思就是除了登录页面,其他的页面都默认加载frame组件(包含导航条和侧边栏),但是不知道怎么排除/login路由,这是router的代码。

clipboard.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

login拉出来,不要放到父路由里面


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...