修改页面,完成单页模式新增首页返回上一页按钮
This commit is contained in:
@@ -285,12 +285,7 @@
|
||||
function redirectUnauthorized(api, error) {
|
||||
if (!shouldRedirectToLogin(api, error)) return false;
|
||||
if (api && api.clearToken) api.clearToken();
|
||||
if (!root.location) return true;
|
||||
if (typeof root.location.replace === 'function') {
|
||||
root.location.replace('login.html');
|
||||
return true;
|
||||
}
|
||||
root.location.href = 'login.html';
|
||||
root.NavigationUtil.open('login.html');
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -587,7 +582,7 @@
|
||||
savedId = videoId || (saved && saved.videoId);
|
||||
if (!savedId) throw new Error('保存响应缺少 videoId');
|
||||
await api.videoDetail(genealogyId, savedId);
|
||||
if (root.location) root.location.href = buildListUrl(genealogyId, savedId);
|
||||
root.NavigationUtil.open(buildListUrl(genealogyId, savedId));
|
||||
} catch (error) {
|
||||
if (redirectUnauthorized(api, error)) return;
|
||||
setFormStatus(
|
||||
|
||||
Reference in New Issue
Block a user