如何使用 导航到子状态$router.push?
我的路线:
const routes = [
{
path: "/customers", name: 'Customers',
components: {content: CustomersMain},
props: {header: true, content: false},
children: [
{
path: '',
component: CustomerDetailsEmpty
},
{
path: ':id',
name: 'CustomerDetails',
component: CustomerDetails
}
]
}
];
Run Code Online (Sandbox Code Playgroud)
如何使用使用CustomerDetails的id参数集
导航到$router.push?
这做到了:
this.$router.push({ name: `CustomerDetails`, params: {id} });
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3254 次 |
| 最近记录: |