componnet省略写,patchMatch使用默认值prefix
1、config: [ {path: '/demo'}, {path: '/demo/abc'} ]
href: /demo/abc 匹配到第2个
href: /demo/qqq 路由会自动改为 /demo,然后匹配到第一个
2、config: [ {path: '/demo'}, {path: '/demo?a=1'} ]
href: /demo?a=1 路由不会重写, 匹配到第1个
componnet省略写,patchMatch使用默认值prefix
1、config: [ {path: '/demo'}, {path: '/demo/abc'} ]
href: /demo/abc 匹配到第2个
href: /demo/qqq 路由会自动改为 /demo,然后匹配到第一个
2、config: [ {path: '/demo'}, {path: '/demo?a=1'} ]
href: /demo?a=1 路由不会重写, 匹配到第1个