mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
为ProfileServ的diyCfg增加默认值
This commit is contained in:
parent
ce358f5b4b
commit
419bb1ff2d
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user