diff --git a/src/views/infra/codegen/components/FinishForm.vue b/src/views/infra/codegen/components/FinishForm.vue index 0cd12c46..01d71799 100644 --- a/src/views/infra/codegen/components/FinishForm.vue +++ b/src/views/infra/codegen/components/FinishForm.vue @@ -35,7 +35,7 @@ function handlePreview() { async function handleGenTable() { const tableId = query.id as unknown as number const res = await getCodegenTable(tableId) - await downloadCodegen(res) + await downloadCodegen(res.table) createMessage.success(t('common.successText')) }