From dd5fbc0a46071401cb66ee31a7eb63d979df34e3 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Thu, 3 Aug 2023 21:26:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=8C=E7=BA=A7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E7=BC=96=E8=AF=91bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/notion/getPageProperties.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notion/getPageProperties.js b/lib/notion/getPageProperties.js index b9bdbe4d..8d3add33 100644 --- a/lib/notion/getPageProperties.js +++ b/lib/notion/getPageProperties.js @@ -98,7 +98,7 @@ export default async function getPageProperties(id, block, schema, authToken, ta properties.slug = properties.slug ?? properties.id } else if (properties.type === BLOG.NOTION_PROPERTY_NAME.type_menu || properties.type === BLOG.NOTION_PROPERTY_NAME.type_sub_menu) { // 菜单路径为空、作为可展开菜单使用 - properties.to = properties.slug ?? null + properties.to = properties.slug ?? '#' properties.name = properties.title ?? '' }