Update getNotionConfig.js

This commit is contained in:
ShH Y
2023-12-16 09:18:48 +08:00
committed by GitHub
parent 533717f8b1
commit 9492addd1d

View File

@@ -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
}