修改页面,完成单页模式新增首页返回上一页按钮
This commit is contained in:
@@ -104,12 +104,7 @@
|
||||
}
|
||||
|
||||
function redirectToLogin() {
|
||||
if (!root.location) return;
|
||||
if (typeof root.location.replace === 'function') {
|
||||
root.location.replace('login.html');
|
||||
return;
|
||||
}
|
||||
root.location.href = 'login.html';
|
||||
root.NavigationUtil.open('login.html');
|
||||
}
|
||||
|
||||
function redirectUnauthorized(api, error) {
|
||||
@@ -246,6 +241,7 @@
|
||||
try {
|
||||
profile = await api.currentProfile();
|
||||
if (requestId !== latestProfileRequestId) return;
|
||||
if (root.PublicNavigation) root.PublicNavigation.storeUser(profile);
|
||||
renderProfile(buildProfileView(profile));
|
||||
fillProfileForm(profile);
|
||||
setProfileLoadStatus('', '');
|
||||
|
||||
Reference in New Issue
Block a user