Commit ba6ff9d5 authored by youjie's avatar youjie

出团通知下载

parent 0076387f
...@@ -296,8 +296,9 @@ ...@@ -296,8 +296,9 @@
let sign = title + "V2" let sign = title + "V2"
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign + // a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data); // '.pdf&&fPath=' + res.data.data);
a.setAttribute('href', 'https://microservice.oytour.com/task/create/pdf/'+encodeURIComponent(res.data.data));
a.click(); a.click();
} else { } else {
this.$message.error('PDF获取失败'); this.$message.error('PDF获取失败');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment