mirror of
https://github.com/yangzongzhuan/RuoYi-Vue3.git
synced 2025-12-17 15:05:57 +00:00
优化生成代码下载的zip文件名
This commit is contained in:
@@ -224,7 +224,8 @@ function handleGenTable(row) {
|
|||||||
proxy.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath)
|
proxy.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
proxy.$download.zip("/tool/gen/batchGenCode?tables=" + tbNames, "ruoyi.zip")
|
const zipName = Array.isArray(tbNames) ? "ruoyi.zip" : tbNames + ".zip"
|
||||||
|
proxy.$download.zip("/tool/gen/batchGenCode?tables=" + tbNames, zipName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user