|
@@ -354,7 +354,7 @@ export class AttachmentComponent implements OnInit {
|
|
|
|
|
|
downloadFile(fileName: string) {
|
|
|
// let fileName = '十四五”普通高等教育本科国家级规划教材第一次遴选推荐申报表.docx'
|
|
|
- const fileUrl = `../../../../../public/file/${fileName}`;
|
|
|
+ const fileUrl = `/file/${fileName}`;
|
|
|
this.http.get(fileUrl, { responseType: 'blob' }).subscribe((blob) => {
|
|
|
const url = window.URL.createObjectURL(blob);
|
|
|
const a = document.createElement('a');
|