From a3eefb6bad993eb0bc306f085885cf99a8892878 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Wed, 03 Dec 2025 10:27:23 +0800
Subject: [PATCH] 优化生成代码下载的zip文件名

---
 ruoyi-ui/src/views/tool/gen/index.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ruoyi-ui/src/views/tool/gen/index.vue b/ruoyi-ui/src/views/tool/gen/index.vue
index 972736b..382b354 100644
--- a/ruoyi-ui/src/views/tool/gen/index.vue
+++ b/ruoyi-ui/src/views/tool/gen/index.vue
@@ -253,7 +253,8 @@
           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)
       }
     },
     /** 同步数据库操作 */

--
Gitblit v1.9.3