update src/views/tool/gen/index.vue.

修改代码生成下载以表名,删除 ruoyi.zip

Signed-off-by: luyongqiang <luyongqiang2011@163.com>
This commit is contained in:
luyongqiang 2025-02-07 02:55:33 +00:00 committed by Gitee
parent b2a4157285
commit dcfa33f2fb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -185,7 +185,7 @@ const handleGenTable = async (row?: TableVO) => {
await genCode(row.tableId);
proxy?.$modal.msgSuccess('成功生成到自定义路径:' + row.genPath);
} else {
proxy?.$download.zip('/tool/gen/batchGenCode?tableIdStr=' + tbIds, 'ruoyi.zip');
proxy?.$download.zip('/tool/gen/batchGenCode?tableIdStr=' + tbIds, row?.className + '_code.zip');
}
};
/** 同步数据库操作 */