fix: 修复构建报错和 ESLint 兼容性问题

This commit is contained in:
Ray.Hao
2026-04-22 00:36:57 +08:00
parent e4b6166e62
commit aad936a243
2 changed files with 2 additions and 2 deletions

View File

@@ -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",

View File

@@ -134,7 +134,7 @@ const visible = defineModel<boolean>("visible", { required: true });
defineProps<{ title: string }>();
defineEmits<{ success: [] }>();
const currentStep = ref(STEP.BASIC_CONFIG);
const currentStep = ref<number>(STEP.BASIC_CONFIG);
const currentTableName = ref("");
const loading = ref(false);
const loadingText = ref("loading...");