From a3eefb6bad993eb0bc306f085885cf99a8892878 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 3 Dec 2025 10:27:23 +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 972736ba..382b354f 100644 --- a/ruoyi-ui/src/views/tool/gen/index.vue +++ b/ruoyi-ui/src/views/tool/gen/index.vue @@ -253,7 +253,8 @@ export default { this.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath) }) } else { - this.$download.zip("/code/gen/batchGenCode?tables=" + tableNames, "ruoyi.zip") + const zipName = Array.isArray(tableNames) ? "ruoyi.zip" : tableNames + ".zip" + this.$download.zip("/code/gen/batchGenCode?tables=" + tableNames, zipName) } }, /** 同步数据库操作 */