修改页面,完成单页模式新增首页返回上一页按钮
This commit is contained in:
@@ -130,9 +130,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 query(selector) {
|
||||
@@ -190,9 +188,7 @@
|
||||
}
|
||||
genealogyId = root.ProfileUI && root.ProfileUI.getGenealogyId();
|
||||
if (!genealogyId) {
|
||||
if (root.location && typeof root.location.replace === 'function') {
|
||||
root.location.replace('profile-families.html?next=profile-family-home.html');
|
||||
}
|
||||
root.NavigationUtil.open('profile-families.html?next=profile-family-home.html');
|
||||
return;
|
||||
}
|
||||
if (root.ProfileUI && root.ProfileUI.syncGenealogyContextLinks) {
|
||||
|
||||
Reference in New Issue
Block a user