为ProfileServ的diyCfg增加默认值

This commit is contained in:
Kokomi 2022-08-19 09:50:17 +08:00
parent ce358f5b4b
commit 419bb1ff2d

View File

@ -9,8 +9,8 @@ export default class ProfileServ extends Base {
super()
this._name = cfg.name
this.cfgKey = cfg.cfgKey || cfg.id
this.diyCfg = diyCfg[this.cfgKey]
this.sysCfg = sysCfg[this.cfgKey]
this.diyCfg = diyCfg[this.cfgKey] || {}
this.sysCfg = sysCfg[this.cfgKey] || {}
this._cfg = cfg
}