折叠菜单

This commit is contained in:
tangly1024.com
2023-03-09 15:29:22 +08:00
parent c607ef4ac1
commit 280723ccc0
6 changed files with 50 additions and 27 deletions

View File

@@ -82,7 +82,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 ?? '#'
properties.to = properties.slug ?? null
properties.name = properties.title ?? ''
}