diff --git a/lib/router.js b/lib/router.js index a806b85..f269482 100644 --- a/lib/router.js +++ b/lib/router.js @@ -228,7 +228,7 @@ class Router { ctx.routerPath; const matched = router.match(path, ctx.method); if (ctx.matched) { - ctx.matched.push(matched.path); + ctx.matched.push.apply(ctx.matched, matched.path); } else { ctx.matched = matched.path; }