From 9a2ab6208b3d53171614cc298737299215efe49d Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 19 Oct 2023 10:52:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=99=BB=E5=BD=95=E9=80=89=E9=A1=B9=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E4=B8=8D=E5=85=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1032146 --user=刘瑞斌 【系统设置】第一次打开登录页没有LDAP和普通登录信息,刷新后恢复正常 https://www.tapd.cn/55049933/s/1428331 --- .../frontend/src/business/login/index.vue | 30 +++++++------------ 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/framework/sdk-parent/frontend/src/business/login/index.vue b/framework/sdk-parent/frontend/src/business/login/index.vue index 687ce21800..4ef02992e6 100644 --- a/framework/sdk-parent/frontend/src/business/login/index.vue +++ b/framework/sdk-parent/frontend/src/business/login/index.vue @@ -71,7 +71,7 @@ import { saveBaseUrl } from "../../api/user"; import {useUserStore} from "@/store" -import {checkMicroMode, operationConfirm} from "../../utils"; +import {operationConfirm} from "../../utils"; import {getModuleList} from "../../api/module"; import {getLicense} from "../../api/license"; import {setLanguage} from "../../i18n"; @@ -140,13 +140,10 @@ export default { .catch(() => { }); // ldap open - // 网关统一登录,本地不再提供这个登录方式 - if (checkMicroMode()) { - checkLdapOpen("/ldap/open") - .then(response => { - this.openLdap = response.data; - }); - } + checkLdapOpen("/ldap/open") + .then(response => { + this.openLdap = response.data; + }); getModuleList() .then(response => { let modules = {}; @@ -161,13 +158,10 @@ export default { if (!hasLicense()) { return; } - // 网关统一sso登录,本地不再提供这个登录方式 - if (checkMicroMode()) { - getAuthSources() - .then(response => { - this.authSources = response.data; - }); - } + getAuthSources() + .then(response => { + this.authSources = response.data; + }); getDisplayInfo() .then(response => { if (response.data[3].paramValue) { @@ -205,10 +199,8 @@ export default { created: function () { document.addEventListener("keydown", this.watchEnter); let authenticate = localStorage.getItem('AuthenticateType'); - if (checkMicroMode()) { - if (authenticate === 'LOCAL' || authenticate === 'LDAP') { - this.form.authenticate = authenticate; - } + if (authenticate === 'LOCAL' || authenticate === 'LDAP') { + this.form.authenticate = authenticate; } },