Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这样的路由'xxx.com/company/880'
{ path: 'company/:id', component: CompanyComponent }
在我订阅 route.params 的组件中,获取公司的 id,然后通过 id 获取数据。
我需要将路线更改为类似于“xxx.com/company/880/NameOfCompany”的路线,但是当在 url 中手动更改公司 ID 时,公司名称也会更改