fix(gh): pull request router

This commit is contained in:
Rongjian Zhang 2022-10-01 02:27:21 +08:00
parent 8d1e3fa596
commit a30385a414
1 changed files with 6 additions and 1 deletions

View File

@ -246,11 +246,16 @@ final router = GoRouter(
], ],
), ),
GoRoute( GoRoute(
path: 'pull', path: 'pulls',
builder: (context, state) => GhPullsScreen( builder: (context, state) => GhPullsScreen(
state.params['owner']!, state.params['owner']!,
state.params['name']!, state.params['name']!,
), ),
),
GoRoute(
path: 'pull',
redirect: (state) =>
'/github/${state.params['owner']!}/${state.params['name']!}/pulls',
routes: [ routes: [
GoRoute( GoRoute(
path: ':number', path: ':number',