mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-04 07:26:47 +00:00
fix/article-password
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user