修改页面,完成单页模式新增首页返回上一页按钮
This commit is contained in:
@@ -194,9 +194,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 getApiStateType(error) {
|
||||
@@ -351,7 +349,7 @@
|
||||
if (!refreshed.some(function (item) { return item.applyId === created.applyId; })) {
|
||||
throw new Error('提交后无法读取同一申请');
|
||||
}
|
||||
if (root.location) root.location.href = 'profile-join-family.html';
|
||||
root.NavigationUtil.open('profile-join-family.html');
|
||||
} catch (error) {
|
||||
if (shouldRedirectToLogin(api, error)) {
|
||||
redirectToLogin(api);
|
||||
|
||||
Reference in New Issue
Block a user