fix(route/pts): Refine link selector. (#14988)
* Update index.ts * Update index.ts
This commit is contained in:
parent
74fddc4f4b
commit
de40d32bb1
|
|
@ -29,7 +29,7 @@ async function handler(ctx) {
|
|||
|
||||
const $ = load(response.data);
|
||||
|
||||
let items = $('h2 a')
|
||||
let items = $('h1 a,h2 a')
|
||||
.slice(0, ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit')) : 30)
|
||||
.toArray()
|
||||
.map((item) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue