RuoYi
2025-12-03 a3eefb6bad993eb0bc306f085885cf99a8892878
优化生成代码下载的zip文件名
1 files modified
3 ■■■■ changed files
ruoyi-ui/src/views/tool/gen/index.vue 3 ●●●● patch | view | raw | blame | history
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)
      }
    },
    /** 同步数据库操作 */