diff --git a/lib/notion/getNotionConfig.js b/lib/notion/getNotionConfig.js index 3da592c9..984b6eb7 100644 --- a/lib/notion/getNotionConfig.js +++ b/lib/notion/getNotionConfig.js @@ -123,7 +123,7 @@ export async function getConfigMapFromConfigPage(allPages) { if (properties) { // 将表格中的字段映射成 英文 const config = { - enable: properties['启用'] || properties.Enable === 'Yes', + enable: (properties['启用'] || properties.Enable) === 'Yes', key: properties['配置名'] || properties.Name, value: properties['配置值'] || properties.Value }