From 38b17951cf6fcad47a49ef6c0948c1564fab6dc3 Mon Sep 17 00:00:00 2001 From: fhysy <1149505133@qq.com> Date: Mon, 3 Mar 2025 16:02:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(auth):=20=E8=A7=A3=E5=86=B3=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8Fappid=20=E6=9C=AA=E6=89=BE?= =?UTF-8?q?=E5=88=B0=E5=8C=B9=E9=85=8D=E9=A1=B9=EF=BC=8C=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/auth/passwordLogin.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pages/auth/passwordLogin.vue b/pages/auth/passwordLogin.vue index 3bd3f6c..f9aff98 100644 --- a/pages/auth/passwordLogin.vue +++ b/pages/auth/passwordLogin.vue @@ -374,14 +374,24 @@ // #endif // #ifdef MP-WEIXIN if(this.appid){ + let isAppid = true; data.voList.forEach((item) => { if (item.appId === this.appid) { + console.log("appId",item) this.form.tenantId = item.tenantId; logo = item.logo; title = item.companyName; + isAppid = false; } }); - this.isTenant = false; + if(isAppid){ + this.form.tenantId = data.voList[0].tenantId; + this.activeTenantObj = data.voList[0] ; + logo = data.voList[0].logo; + title = data.voList[0].companyName; + }else{ + this.isTenant = false; + } }else if (data.voList != null && data.voList.length !== 0) { this.form.tenantId = data.voList[0].tenantId; this.activeTenantObj = data.voList[0] ; @@ -389,6 +399,7 @@ title = data.voList[0].companyName; } // #endif + console.log("title",title,logo) if(title){ this.appConfig.logo = logo; this.appConfig.name = title;