diff --git a/src/views/grateful/GratefulHomePage.vue b/src/views/grateful/GratefulHomePage.vue index ec751374..80fd0418 100644 --- a/src/views/grateful/GratefulHomePage.vue +++ b/src/views/grateful/GratefulHomePage.vue @@ -258,20 +258,21 @@ export default { methods: { downTool(toolInfo) { console.log(toolInfo); - toolDown({ - urlStr: `${process.env.VUE_APP_BOE_WEB_URL}/upload${toolInfo.filePath}`, - fileName: toolInfo.name - }).then((result) => { - const link = document.createElement('a');// 创建a标签 - let blob = new Blob([result.data], { type: '' }); // 设置文件类型 - link.style.display = "none"; - link.href = URL.createObjectURL(blob); // 创建URL - link.setAttribute("download", `${toolInfo.name}`); - document.body.appendChild(link); - link.click(); - URL.revokeObjectURL(link.href); - document.body.removeChild(link); - }) + window.open(`/activityApi/xboe/m/boe/tools/url/download?urlStr=${process.env.VUE_APP_BOE_WEB_URL}/upload${toolInfo.filePath}&fileName=${toolInfo.name}`) + // toolDown({ + // urlStr: `${process.env.VUE_APP_BOE_WEB_URL}/upload${toolInfo.filePath}`, + // fileName: toolInfo.name + // }).then((result) => { + // const link = document.createElement('a');// 创建a标签 + // let blob = new Blob([result.data], { type: '' }); // 设置文件类型 + // link.style.display = "none"; + // link.href = URL.createObjectURL(blob); // 创建URL + // link.setAttribute("download", `${toolInfo.name}`); + // document.body.appendChild(link); + // link.click(); + // URL.revokeObjectURL(link.href); + // document.body.removeChild(link); + // }) }, couresreso() { carouselList().then((res) => { diff --git a/src/views/grateful/GratefulNotice.vue b/src/views/grateful/GratefulNotice.vue index 4e3e3465..00c9fa7d 100644 --- a/src/views/grateful/GratefulNotice.vue +++ b/src/views/grateful/GratefulNotice.vue @@ -23,7 +23,7 @@
{{ item.name }}
- +
diff --git a/src/views/grateful/NoticeDetail.vue b/src/views/grateful/NoticeDetail.vue index 4759c120..20087860 100644 --- a/src/views/grateful/NoticeDetail.vue +++ b/src/views/grateful/NoticeDetail.vue @@ -26,7 +26,7 @@
发布人:{{ createName }}
- +
通知内容