From b086e172ae77331ba8a6bc551bcb37cc27aaf371 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 3 Dec 2025 10:26:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=9F=E6=88=90=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=B8=8B=E8=BD=BD=E7=9A=84zip=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tool/gen/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/tool/gen/index.vue b/src/views/tool/gen/index.vue index d179f09..823a850 100644 --- a/src/views/tool/gen/index.vue +++ b/src/views/tool/gen/index.vue @@ -224,7 +224,8 @@ function handleGenTable(row) { proxy.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath) }) } else { - proxy.$download.zip("/tool/gen/batchGenCode?tables=" + tbNames, "ruoyi.zip") + const zipName = Array.isArray(tbNames) ? "ruoyi.zip" : tbNames + ".zip" + proxy.$download.zip("/tool/gen/batchGenCode?tables=" + tbNames, zipName) } }