fix/article-password

This commit is contained in:
tangly1024.com
2023-04-18 14:35:47 +08:00
parent d1fef2aa31
commit 9da98de56d
3 changed files with 35 additions and 10 deletions

View File

@@ -4,6 +4,11 @@ import formatDate from '../formatDate'
import { getPostBlocks } from './getPostBlocks'
import { defaultMapImageUrl } from 'react-notion-x'
/**
* 根据页面ID获取内容
* @param {*} pageId
* @returns
*/
export async function getNotion(pageId) {
const blockMap = await getPostBlocks(pageId, 'slug')
if (!blockMap) {