From 4c9b0465b2ebfea1836bc5688290389ce1d24c40 Mon Sep 17 00:00:00 2001 From: xingyu Date: Mon, 24 Apr 2023 19:49:48 +0800 Subject: [PATCH] fix: gen table error --- src/views/infra/codegen/components/FinishForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) }