修改页面,完成单页模式新增首页返回上一页按钮

This commit is contained in:
2026-08-31 14:48:32 +08:00
parent aaed0584b1
commit 15b301b358
363 changed files with 10895 additions and 213 deletions
+2 -2
View File
@@ -58,7 +58,7 @@
if (!page) return;
if (!api || !api.getToken || !api.getToken()) {
if (root.location) root.location.href = 'login.html';
root.NavigationUtil.open('login.html');
return;
}
if (!genealogyId) {
@@ -129,7 +129,7 @@
genealogyName: nameInput.value.trim(), smsCode: codeInput.value.trim()
});
if (root.ProfileUI && root.ProfileUI.clearCurrentGenealogyContext) root.ProfileUI.clearCurrentGenealogyContext();
if (root.location) root.location.href = 'profile-families.html';
root.NavigationUtil.open('profile-families.html');
} catch (error) { setStatus('error', error.message || '永久删除提交失败'); }
finally { setPending(false); }
});