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

pull/1026/head
净手摸杯买橘归 2025-06-11 12:06:25 +08:00
parent d46e62a21a
commit 9320d69a06
1 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,8 @@ export default {
this.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath)
})
} else {
this.$download.zip("/tool/gen/batchGenCode?tables=" + tableNames, "ruoyi.zip")
const zipName = "ruoyi-" + tableNames +".zip"
this.$download.zip("/tool/gen/batchGenCode?tables=" + tableNames, zipName)
}
},
/** 同步数据库操作 */