chore: format script code.

This commit is contained in:
jaywcjlove
2022-10-29 00:24:39 +08:00
parent bd082908d8
commit 4132a13a96
24 changed files with 471 additions and 298 deletions

View File

@ -1,4 +1,3 @@
export function getChilds(data = [], level, result = []) {
for (let i = 1; i <= data.length; i++) {
const titleNum = Number(data[i]?.tagName?.replace(/^h/, ''));