Skip to content

Commit

Permalink
feat: 注销登录修改
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 9137
  • Loading branch information
hyunfa committed Jun 3, 2024
1 parent edf8e04 commit bc66544
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/components/common/navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,12 @@ export default class NodemanNavigation extends Mixins(routerBackMixin) {
window.location.href = `${LOGIN_DEV_URL.replace('bknodeman.','')}?is_from_logout=1&c_url=${encodeURIComponent(window.location.href)}`;
} else {
// 废弃使用退出登录接口的方式,改为使用统一注销登录方式
window.location.href = `${window.PROJECT_CONFIG.LOGIN_URL}?is_from_logout=1&c_url=${encodeURIComponent(window.location.href)}`
let loginUrl = window.PROJECT_CONFIG.LOGIN_URL;
// 添加协议头
if (!/http(s)?:\/\//.test(loginUrl)) {
loginUrl = `${window.location.protocol}//${loginUrl}`;
}
window.location.href = `${loginUrl}?is_from_logout=1&c_url=${encodeURIComponent(window.location.href)}`
}
}
}
Expand Down

0 comments on commit bc66544

Please sign in to comment.