core: read falsy values from new settings

This commit is contained in:
undefined committed 2025-12-26 09:33:41 +08:00
1 parent c1327a55a2
commit f2b79e3ba1
1 file changed
+1 -1
+1 -1
View File
@@ -141,7 +141,7 @@ export class SettingService extends Service {
get(key: string) { get(key: string) {
return (this.ctx ? this.ctx.domain?.config?.[key.replace(/\./g, '$')] : null) return (this.ctx ? this.ctx.domain?.config?.[key.replace(/\./g, '$')] : null)
?? (this._get(key) || global.Hydro?.model?.system?.get?.(key)); ?? (this._get(key) ?? global.Hydro?.model?.system?.get?.(key));
} }
async setConfig(key: string, value: any) { async setConfig(key: string, value: any) {