From 43db60d4e77705e0f938a2b3637fc05cb78f13a9 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 7 May 2025 20:55:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=A6=BB=E7=BA=BF=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common/widgets/user/user_tenant_dialog.dart | 2 +- lib/pages/login/controller.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/widgets/user/user_tenant_dialog.dart b/lib/common/widgets/user/user_tenant_dialog.dart index 7fd0804..581a963 100644 --- a/lib/common/widgets/user/user_tenant_dialog.dart +++ b/lib/common/widgets/user/user_tenant_dialog.dart @@ -37,7 +37,7 @@ Widget appTenantDialog( builder: (context, _) { final v = controller.value.firstOrNull; if (v == null) return const SizedBox(); - final target = selectList.firstWhere((i) => i.code == v); + final target = selectList.firstWhere((i) => i.id == v); return Text( target.name!, style: theme.typography.base.copyWith( diff --git a/lib/pages/login/controller.dart b/lib/pages/login/controller.dart index a6e70ae..e0b4606 100644 --- a/lib/pages/login/controller.dart +++ b/lib/pages/login/controller.dart @@ -160,7 +160,7 @@ class LoginController extends GetxController { tenantC.value = {userSetting.tenantId!}; } else { if (!ObjectUtil.isEmptyList(list)) { - tenantC.value = {list.first.code!}; + tenantC.value = {list.first.id!}; } } // 存储租户列表