This commit is contained in:
Taric Xin
2022-01-20 10:38:23 +08:00
parent af0ffc08ea
commit 29e13a49be
5 changed files with 14 additions and 11 deletions

View File

@ -131,7 +131,7 @@ export class FreightAccountService extends ShipperBaseService {
const a = document.createElement('a');
document.body.appendChild(a);
a.href = objectUrl;
a.download = '单.pdf';
a.download = '单.pdf';
if (isIE) {
// 兼容IE11无法触发下载的问题
(navigator as any).msSaveBlob(url, a.download);