From 456e1534ee381e42861784b8056c86dcc7f4f21a Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 3 Dec 2025 10:27:04 +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 --- ruoyi-ui/src/views/tool/gen/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/tool/gen/index.vue b/ruoyi-ui/src/views/tool/gen/index.vue index 83c026fb3..9859722ed 100644 --- a/ruoyi-ui/src/views/tool/gen/index.vue +++ b/ruoyi-ui/src/views/tool/gen/index.vue @@ -266,7 +266,8 @@ export default { this.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath) }) } else { - this.$download.zip("/tool/gen/batchGenCode?tables=" + tableNames, "ruoyi.zip") + const zipName = Array.isArray(tableNames) ? "ruoyi.zip" : tableNames + ".zip" + this.$download.zip("/tool/gen/batchGenCode?tables=" + tableNames, zipName) } }, /** 同步数据库操作 */