fix bug
This commit is contained in:
@ -505,14 +505,14 @@ export class orderManagementVoucherViewComponent implements OnInit {
|
||||
openlaod(value: any) {
|
||||
if(value === 1) {
|
||||
const a = document.createElement('a');
|
||||
a.href = this.datas?.loadingLadingBillFilePath;
|
||||
a.href = this.datas?.loadingElectronicsLadingBillFilePath;
|
||||
document.body.appendChild(a);
|
||||
console.log(document.body.contains(a))
|
||||
a.click(); //点击下载
|
||||
document.body.removeChild(a); //下载完成移除元素
|
||||
} else {
|
||||
const a = document.createElement('a');
|
||||
a.href = this.datas?.loadingPeopleVehiclesGoodsFilePath;
|
||||
a.href = this.datas?.unloadingElectronicsLadingBillFilePath;
|
||||
document.body.appendChild(a);
|
||||
console.log(document.body.contains(a))
|
||||
a.click(); //点击下载
|
||||
|
||||
Reference in New Issue
Block a user