Commit 4962aa7d authored by zjz1994's avatar zjz1994

代码暂存

parent abc443bb
...@@ -85,7 +85,7 @@ chapters.forEach((chapter,index) => { ...@@ -85,7 +85,7 @@ chapters.forEach((chapter,index) => {
*/ */
export function getChapterData(index: number): ChapterData { export function getChapterData(index: number): ChapterData {
//没有数据就返回第一关数据 //没有数据就返回第一关数据
return chapters[751]; // return chapters[751];
return chapters[index] || chapters[1]; return chapters[index] || chapters[1];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment