支持ABL风格地址

This commit is contained in:
lin
2025-09-18 18:53:12 +08:00
parent fb9ff67701
commit a064f27bf8
18 changed files with 346 additions and 548 deletions

View File

@@ -237,9 +237,27 @@ export default {
const link = document.createElement('a')
link.target = '_blank'
if (location.protocol === 'https:') {
link.href = data.httpsPath + '&save_name=' + row.fileName
if (data.httpsPath) {
link.href = data.httpsPath + '&save_name=' + row.fileName
}else if (data.httpPath){
link.href = data.httpPath + '&save_name=' + row.fileName
}else {
this.$message.error({
showClose: true,
message: '获取下载地址失败'
})
}
} else {
link.href = data.httpPath + '&save_name=' + row.fileName
if (data.httpPath) {
link.href = data.httpPath + '&save_name=' + row.fileName
}else if (data.httpsPath){
link.href = data.httpsPath + '&save_name=' + row.fileName
}else {
this.$message.error({
showClose: true,
message: '获取下载地址失败'
})
}
}
link.click()
})