Kaynağa Gözat

fix: all download template

ryanemax 7 ay önce
ebeveyn
işleme
97adc64243

+ 1 - 1
docker-front

@@ -1 +1 @@
-Subproject commit a79fb9aa51fa59233a31ec6b3fe4856ac14fce00
+Subproject commit f61efa85124a62b5cfef8c339a20d07830bbadd0

+ 1 - 1
projects/textbook/src/modules/nav-author/components/attachment/attachment.component.ts

@@ -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');