From bc66544219cc6067e02dae47308ec156f18e2095 Mon Sep 17 00:00:00 2001 From: hyunfa <1598047833@qq.com> Date: Mon, 3 Jun 2024 14:24:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B3=A8=E9=94=80=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20#=20Reviewed,=20transaction=20id:=209137?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/common/navigation.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/common/navigation.vue b/frontend/src/components/common/navigation.vue index 6c8f703527..8d0e53b99e 100644 --- a/frontend/src/components/common/navigation.vue +++ b/frontend/src/components/common/navigation.vue @@ -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)}` } } }