|
@@ -159,9 +159,9 @@ export class CompUploadComponent implements OnInit {
|
|
|
// let file = this.Previewfilelist[index]?.url;
|
|
|
let url = e?.url
|
|
|
if (!/\.(jpg|jpeg|png|GIF|JPG|PNG)$/.test(url)) {
|
|
|
- // if(this.acl == 'private'){
|
|
|
- // url = await this.ossProvider?.signatureUrl(url)
|
|
|
- // }
|
|
|
+ if(this.acl == 'private'){
|
|
|
+ url = await this.ossProvider?.signatureUrl(url)
|
|
|
+ }
|
|
|
window.open(url);
|
|
|
} else {
|
|
|
this.nzImageService.preview([{ src: url }], { nzZoom: 1, nzRotate: 0 });
|