Bladeren bron

refactor(novel-app): 删除冗余代码

18460000105 3 maanden geleden
bovenliggende
commit
3cbc35e58f
1 gewijzigde bestanden met toevoegingen van 4 en 9 verwijderingen
  1. 4 9
      novel-app/src/app/chapter-generator/chapter-generator.page.ts

+ 4 - 9
novel-app/src/app/chapter-generator/chapter-generator.page.ts

@@ -113,15 +113,10 @@ export class ChapterGeneratorPage implements OnInit {
   }
 
   saveChapter() {
-    if (this.selectedChapterIndex !== null) {
-      this.chapters[this.selectedChapterIndex].title = this.selectedChapterTitle;
-      this.chapters[this.selectedChapterIndex].content = this.selectedChapterContent;
-      console.log('章节内容已保存:', this.selectedChapterContent);
-      this.selectedChapterIndex = null;
-      this.selectedChapterTitle = '';
-      this.selectedChapterContent = '';
-      this.isSideShow = true; // 显示侧边栏
-    }
+   
+
+
+    
   }
 
   insertTextIntoChapterEnd(text: string) {