优化生成代码下载的zip文件名

pull/443/head
RuoYi 2025-12-03 10:27:23 +08:00
parent 09e8e9995a
commit a3eefb6bad
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}
},
/** 同步数据库操作 */