fix query property parsing
This commit is contained in:
parent
356ab1fe54
commit
fdf35ad14f
|
@ -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) }
|
||||
: {},
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue