修复站点图标为Emoji时的编译问题

This commit is contained in:
tangly1024
2022-05-13 12:46:30 +08:00
parent 704185898c
commit 7a0058f7c1
3 changed files with 16 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ async function getPageWithRetry(id, from, retryAttempts = 3) {
console.log('[请求API]', `from:${from}`, `id:${id}`, retryAttempts < 3 ? `剩余重试次数:${retryAttempts}` : '')
try {
const authToken = BLOG.NOTION_ACCESS_TOKEN || null
const api = new NotionAPI({ authToken })
const api = new NotionAPI({ authToken, userTimeZone: 'Asia/ShangHai' })
const pageData = await api.getPage(id)
console.info('[响应成功]:', `from:${from}`, `id:${id}`)
return pageData