Skip to content

Commit

Permalink
fix(markdown): split ids in server
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Aug 10, 2022
1 parent 25f40cd commit 335db29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/markdown/markdown.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ export class MarkdownController {
@HTTPDecorators.Bypass
async exportSomeMarkdowns(
@Query() { showTitle, slug, yaml }: ExportMarkdownDto,
@Body() { id }: any,
@Body() { ids }: any,
@Res() res
) {
const id = ids.split(",");
const { posts, pages } = await this.markdownService.getSomeMarkdownData(id); // 获取部分数据
// 如果 posts 和 pages 合起来只有一条数据,则直接导出
if (id.length === 1) {
Expand Down

0 comments on commit 335db29

Please sign in to comment.