fix(profile): restore route styles and hidden modals

This commit is contained in:
2026-08-19 14:08:42 +08:00
parent a5ed4bbb6f
commit 886ea8732c
6 changed files with 74 additions and 20 deletions
+1 -1
View File
@@ -590,6 +590,7 @@
if (typeof m === 'string') m = document.getElementById(m);
if (!m) return;
m.classList.remove('is-open');
m.hidden = true;
document.body.style.overflow = '';
var f = m.querySelector('form');
var sceneMap = { 'pwd-modal': 'change_password', 'email-modal': 'change_email', 'phone-modal': 'bind_phone' };
@@ -605,7 +606,6 @@
if (scene && store && store[scene] && typeof store[scene].reset === 'function') {
store[scene].reset();
}
if (m.id === 'phone-modal') m.hidden = true;
}
root.querySelectorAll('.security-trigger').forEach(function(btn) {