This commit is contained in:
2025-09-17 22:33:49 +08:00
parent 461c5bb508
commit 04f77853ba
4 changed files with 573 additions and 525 deletions
+3 -6
View File
@@ -695,13 +695,10 @@
.then(response => response.json())
.then(data => {
if (data.success) {
// 密码修改成功
// 密码修改成功,先执行退出功能,再跳转到登录页面
alert(data.message);
closeChangePasswordModal();
// 跳转到登录页面
setTimeout(() => {
window.location.href = '{{ url_for('login') }}';
}, 1000);
// 重定向到退出路由,系统会自动完成退出并跳转到登录页面
window.location.href = '{{ url_for('logout') }}';
} else if (data.error) {
// 显示服务器返回的错误信息
showPasswordError(data.error);