方法一:绑定路径
红色框为增改内容!!!
{path:"/params/:aaa/:bbb"}
<li><router-link to="/params/111/222">/params/111/222</router-link></li>
<pre><code> {{ $route.params.aaa}} {{ JSON.stringify($route,null,2)}} </code></pre>
方法二:正则
红色框为增改内容!!!
{path:"/parame-regex/:id(\\d+)"} //正则,匹配id为数字的值
<li><router-link to="/parame-regex/222">/parame-regex/222</router-link></li>