看各大文章路径参数通配规则是这样写的 <Route path='/index(/:aa)' /> 然而,这根本没用!!! 要写成这样 <Route path='/index/:aa?' /> 后边的问号表示这个参数是可选的