fix(admin): 注册设置 toggle 读错数据源 — 从 audit 读 registration.* 导致状态丢失
This commit is contained in:
@ -50,7 +50,7 @@
|
||||
|
||||
if (t.id === 'maintenance-enabled') {
|
||||
el.checked = allSettings[t.key] === 'true';
|
||||
} else if (t.id === 'registration-enabled') {
|
||||
} else if (t.key.indexOf('registration.') === 0) {
|
||||
el.checked = allSettings[t.key] !== 'false';
|
||||
} else {
|
||||
el.checked = audit[t.key.split('.')[1]] === true;
|
||||
|
||||
Reference in New Issue
Block a user