From befa87ba54890a6f1706a91d674a87829b92a382 Mon Sep 17 00:00:00 2001 From: zlyx <1242874891@qq.com> Date: Thu, 30 Mar 2023 09:16:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update=20=E6=9B=B4=E6=96=B0=20=E6=B3=A8?= =?UTF-8?q?=E5=86=8C/=E7=99=BB=E5=BD=95/=E9=A1=B6=E9=83=A8=E6=A0=8F=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A7=9F=E6=88=B7=E5=BC=80=E5=85=B3=E5=88=A4?= =?UTF-8?q?=E6=96=AD=20;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 8 ++++++-- src/views/login.vue | 8 ++++++-- src/views/register.vue | 8 ++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 49729562..4ec2e287 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -11,7 +11,7 @@ filterable reserve-keyword placeholder="请选择租户" - v-if="userId === 1" + v-if="userId === 1 && tenantEnabled" @change="dynamicTenantEvent" @clear="dynamicClearEvent"> { - tenantList.value = res.data; + const vo = res.data; + tenantList.value = vo.voList; + tenantEnabled.value = vo.tenantEnabled === undefined ? true : vo.tenantEnabled; }); } diff --git a/src/views/login.vue b/src/views/login.vue index ad58ef01..4ec8ec44 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -2,7 +2,7 @@