/abc/:type/:code
要这个code没有的时候也匹配上,
该怎么写呢?
求告知,谢谢~
react-router 2.0中可选参数写法
/abc/:type(/:code)
react-router 4.0中可选参数写法
/abc/:type/:code?
2.1m questions
2.1m answers
62 comments
56.7k users