mirror of
https://github.com/wangdage12/Snap.Server.Web.git
synced 2026-02-18 02:42:14 +08:00
msix是使用zip打包的
This commit is contained in:
@@ -229,7 +229,12 @@ function downloadFile(item: VersionInfo, packageType: 'msi' | 'msix') {
|
||||
|
||||
const a = document.createElement('a')
|
||||
a.href = downloadUrl
|
||||
a.download = `Snap.Hutao.${item.version}.${packageType}`
|
||||
// 如果是msix的话,文件是用zip格式压缩的
|
||||
if (packageType === 'msix') {
|
||||
a.download = `Snap.Hutao.${item.version}.zip`
|
||||
} else {
|
||||
a.download = `Snap.Hutao.${item.version}.msi`
|
||||
}
|
||||
a.target = '_blank'
|
||||
document.body.appendChild(a)
|
||||
a.click()
|
||||
|
||||
Reference in New Issue
Block a user