We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8825e commit 328bbb0Copy full SHA for 328bbb0
examples.txt
@@ -99,5 +99,3 @@
99
099.数据对比.html
100
100.曲面八分屏.html
101
101.基金收益计算.html
102
-blog.html
103
-index.html
index.html
@@ -270,13 +270,15 @@
270
for (const nav of navData) {
271
if (nav) {
272
let navNum = nav.split(".").shift();
273
- let navName = nav.match(/[\d]{1,}.(.*?).html/)[1];
274
- let navSrc = "./" + nav?.replace("\r", "");
275
- navList.push({
276
- navNum,
277
- navName,
278
- navSrc,
279
- });
+ let navName = nav.match(/[\d]{1,}.(.*?).html/)?.[1];
+ if (navName) {
+ let navSrc = "./" + nav?.replace("\r", "");
+ navList.push({
+ navNum,
+ navName,
+ navSrc,
280
+ });
281
+ }
282
}
283
284
navList.sort((a, b) => b.navNum - a.navNum);
0 commit comments