fix: new issue route priority

This commit is contained in:
Rongjian Zhang 2022-10-05 01:40:03 +08:00
parent f7eb0e6f62
commit 3953544d55
1 changed files with 13 additions and 13 deletions

View File

@ -228,6 +228,13 @@ final router = GoRouter(
state.params['name']!,
),
routes: [
GoRoute(
path: 'new',
builder: (context, state) => GhIssueFormScreen(
state.params['owner']!,
state.params['name']!,
),
),
GoRoute(
path: ':number',
builder: (context, state) => GhIssueScreen(
@ -236,13 +243,6 @@ final router = GoRouter(
int.parse(state.params['number']!),
),
),
GoRoute(
path: 'new',
builder: (context, state) => GhIssueFormScreen(
state.params['owner']!,
state.params['name']!,
),
),
],
),
GoRoute(
@ -359,6 +359,12 @@ final router = GoRouter(
prefix: state.queryParams['prefix'],
),
routes: [
GoRoute(
path: 'new',
builder: (context, state) => GlIssueFormScreen(
int.parse(state.params['id']!),
),
),
GoRoute(
path: ':iid',
builder: (context, state) => GlIssueScreen(
@ -366,12 +372,6 @@ final router = GoRouter(
int.parse(state.params['iid']!),
),
),
GoRoute(
path: 'new',
builder: (context, state) => GlIssueFormScreen(
int.parse(state.params['id']!),
),
),
]),
GoRoute(
path: 'merge_requests',