Browse Source

模板编辑支持章节类型多选

Kevin Jiang 2 years ago
parent
commit
104ea11a27
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/reportTemplate/ReportTemplateEditorView.vue

+ 2 - 2
src/views/reportTemplate/ReportTemplateEditorView.vue

@@ -46,8 +46,8 @@ function onMetaChange(data: ReportMetadataItem[]) {
   }
 }
 
-function onChapterTypeSelected(type: ChapterType) {
-  chapterManager.addChapter(type);
+function onChapterTypeSelected(types: ChapterType[]) {
+  chapterManager.addChapters(types);
 }
 
 function onChapterChange(index: number, data: Chapter) {