From aad936a243daa449860cb9729f836fed9109e3d6 Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Wed, 22 Apr 2026 00:36:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=92=8C=20ESLint=20=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mock/tenant.mock.ts | 2 +- src/views/codegen/components/GeneratorDrawer.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mock/tenant.mock.ts b/mock/tenant.mock.ts index 2aed47e4..78ad80ce 100644 --- a/mock/tenant.mock.ts +++ b/mock/tenant.mock.ts @@ -252,7 +252,7 @@ export default defineMock([ }, ]; - const tenant = allTenants.find((t) => t.id === tenantId) || null; + const tenant = allTenants.find((t) => t.id === String(tenantId)) || null; return { code: tenant ? "00000" : "A0400", diff --git a/src/views/codegen/components/GeneratorDrawer.vue b/src/views/codegen/components/GeneratorDrawer.vue index 372b491c..24957868 100644 --- a/src/views/codegen/components/GeneratorDrawer.vue +++ b/src/views/codegen/components/GeneratorDrawer.vue @@ -134,7 +134,7 @@ const visible = defineModel("visible", { required: true }); defineProps<{ title: string }>(); defineEmits<{ success: [] }>(); -const currentStep = ref(STEP.BASIC_CONFIG); +const currentStep = ref(STEP.BASIC_CONFIG); const currentTableName = ref(""); const loading = ref(false); const loadingText = ref("loading...");