修改页面,完成单页模式新增首页返回上一页按钮
This commit is contained in:
@@ -188,9 +188,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 isForbidden(error) {
|
||||
@@ -339,7 +337,7 @@
|
||||
throw new Error('提交后无法读取同一反馈记录');
|
||||
}
|
||||
if (pageMode === 'ticket') {
|
||||
if (root.location) root.location.href = buildFeedbackDetailUrl(created.feedbackId);
|
||||
root.NavigationUtil.open(buildFeedbackDetailUrl(created.feedbackId));
|
||||
return;
|
||||
}
|
||||
setFeedbackList(list, refreshed, 'ticket-detail.html');
|
||||
|
||||
Reference in New Issue
Block a user