fix(admin): security 页 password.strength 下拉未从 API 恢复当前值
This commit is contained in:
@ -63,6 +63,12 @@
|
||||
// 文本输入保存按钮
|
||||
bindSaveButtons();
|
||||
|
||||
// 密码强度下拉(服务端渲染默认值,需从 API 覆盖以显示最新保存值)
|
||||
var strengthSelect = document.getElementById('setting-password-strength');
|
||||
if (strengthSelect && allSettings['password.strength']) {
|
||||
strengthSelect.value = allSettings['password.strength'];
|
||||
}
|
||||
|
||||
// 社区准则文本域
|
||||
var guidelinesEl = document.getElementById('setting-site-guidelines');
|
||||
if (guidelinesEl) {
|
||||
|
||||
Reference in New Issue
Block a user