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

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 -4
View File
@@ -142,9 +142,7 @@
function redirectToLogin(api) {
if (api && api.clearToken) api.clearToken();
if (!root.location) return;
if (typeof root.location.replace === 'function') root.location.replace('login.html');
else root.location.href = 'login.html';
root.NavigationUtil.open('login.html');
}
function getFormValues(form) {
@@ -269,7 +267,7 @@
if (root.ProfileUI && root.ProfileUI.setCurrentGenealogyContext) {
root.ProfileUI.setCurrentGenealogyContext(verified.genealogyId, verified.genealogyName);
}
if (root.location) root.location.href = buildCreatedGenealogyUrl(verified);
root.NavigationUtil.open(buildCreatedGenealogyUrl(verified));
} catch (error) {
if (shouldRedirectToLogin(api, error)) {
redirectToLogin(api);