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
4.0k views
in Technique[技术] by (71.8m points)

antdPro的项目,怎么写路由拦截器?

头都大了……大佬们指点下吧


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

1 Answer

0 votes
by (71.8m points)

你在 model里的Subscription里拦截路由变化可以么,或者 就是找到渲染 侧边栏 的组件,渲染的时候判断动态拼接一下参数.

antd pro 用的 umi umi里面用的dva, 你可以看下dva的文档


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

...