fix query property parsing
This commit is contained in:
parent
356ab1fe54
commit
fdf35ad14f
|
@ -51,7 +51,7 @@ const routes: RouteRecordRaw[] = [
|
||||||
name: "EditAccessPoint",
|
name: "EditAccessPoint",
|
||||||
component: CreateAccessPoint,
|
component: CreateAccessPoint,
|
||||||
props: (route) => ({
|
props: (route) => ({
|
||||||
apID: Number.parseInt(route.query["site-id"] as string),
|
apID: Number.parseInt(route.query["ap-id"] as string),
|
||||||
edit: true,
|
edit: true,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
@ -61,7 +61,7 @@ const routes: RouteRecordRaw[] = [
|
||||||
component: RegisterAccessPoint,
|
component: RegisterAccessPoint,
|
||||||
props: (route) =>
|
props: (route) =>
|
||||||
route.query["ap-id"]
|
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