mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: read falsy values from new settings
This commit is contained in:
1 file changed
+1
-1
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user