diff --git a/src/router/index.ts b/src/router/index.ts index cc84db5..be3879e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -51,7 +51,7 @@ const routes: RouteRecordRaw[] = [ name: "EditAccessPoint", component: CreateAccessPoint, props: (route) => ({ - apID: Number.parseInt(route.query["site-id"] as string), + apID: Number.parseInt(route.query["ap-id"] as string), edit: true, }), }, @@ -61,7 +61,7 @@ const routes: RouteRecordRaw[] = [ component: RegisterAccessPoint, props: (route) => route.query["ap-id"] - ? { apID: Number.parseInt(route.query["site-id"] as string) } + ? { apID: Number.parseInt(route.query["ap-id"] as string) } : {}, }, ];