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...");