From 841ea4bf36401932de055819ff1286c341dd1776 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Sun, 15 Jun 2025 19:22:52 +0800 Subject: [PATCH] fix: type error --- apps/web-antd/src/layouts/components/tenant-dropdown.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/web-antd/src/layouts/components/tenant-dropdown.vue b/apps/web-antd/src/layouts/components/tenant-dropdown.vue index 255db439d..101043d73 100644 --- a/apps/web-antd/src/layouts/components/tenant-dropdown.vue +++ b/apps/web-antd/src/layouts/components/tenant-dropdown.vue @@ -21,10 +21,11 @@ const accessStore = useAccessStore(); const tenantEnable = isTenantEnable(); -const value = ref(accessStore.visitTenantId ?? undefined); // 当前访问的租户 ID -const tenants = ref([]); // 租户列表 +// 当前访问的租户 ID +const value = ref(accessStore.visitTenantId ?? undefined); +// 租户列表 +const tenants = ref([]); -// TODO @xingyu:这个有可能 3 端复用么? async function handleChange(id: SelectValue) { // 设置访问租户 ID accessStore.setVisitTenantId(id as number);