feat: 压缩改为tar.gz

This commit is contained in:
caiyuchao
2025-09-03 12:02:20 +08:00
parent d07a33a898
commit 6cadcdd285
2 changed files with 2 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ async function onDownload() {
const fileName = `${formData.value.fileUrl?.slice( const fileName = `${formData.value.fileUrl?.slice(
Math.max(0, formData.value.fileUrl.lastIndexOf('/') + 1), Math.max(0, formData.value.fileUrl.lastIndexOf('/') + 1),
formData.value.fileUrl.lastIndexOf('_'), formData.value.fileUrl.lastIndexOf('_'),
)}.tar`; )}.tar.gz`;
const hideLoading = message.loading({ const hideLoading = message.loading({
content: '下载中...', content: '下载中...',

View File

@@ -76,7 +76,7 @@ async function onDownload(row: LicenseApi.License) {
const fileName = `${row.fileUrl?.slice( const fileName = `${row.fileUrl?.slice(
Math.max(0, row.fileUrl.lastIndexOf('/') + 1), Math.max(0, row.fileUrl.lastIndexOf('/') + 1),
row.fileUrl.lastIndexOf('_'), row.fileUrl.lastIndexOf('_'),
)}.tar`; )}.tar.gz`;
const hideLoading = message.loading({ const hideLoading = message.loading({
content: '下载中...', content: '下载中...',