我如何匹配这样的路线:
/github/my-project/and/a/long/path
我正在寻找:
/github/:repo/**
{
path: 'github/:repo/*',
component: Page,
pathMatch: 'prefix'
},
答案 0 :(得分:1)
{
path: 'github/:repo/**',
component: Page,
pathMatch: 'prefix'
},
或
{
path: 'github/:repo',
component: Page,
pathMatch: 'prefix',
children: { path: '**' component: SomeComponent }
},