fix: config value update error

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2021-03-26 16:42:45 +08:00
parent 6fd7174ca5
commit d97af356fd

View File

@ -95,7 +95,7 @@ export class PluginConfigManager {
if (metadata.default) {
let needSave = false
for (const key of Object.keys(metadata.default)) {
if (!value[key]) {
if (value[key] == undefined) {
value[key] = metadata.default[key]
needSave = true
}