5 lines
158 B
TypeScript
5 lines
158 B
TypeScript
|
export default eventHandler((ev) => {
|
||
|
let chapParam = getRouterParams(ev).chapter;
|
||
|
ev.context.chapterIndex = !!chapParam ? parseInt(chapParam) - 1 : 0;
|
||
|
});
|