@freteclick/quasar-financial-ui 1.0.109 → 1.0.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freteclick/quasar-financial-ui",
3
- "version": "1.0.109",
3
+ "version": "1.0.111",
4
4
  "author": "FreteClick",
5
5
  "description": "FreteClick financial Quasar UI Component",
6
6
  "license": "MIT",
@@ -148,7 +148,7 @@ export default {
148
148
 
149
149
  this.isLoadingDownload = true;
150
150
 
151
- const endpoint = `finance/${this.invoiceId}/bank/sicred/download?timestamp=${new Date().getTime()}`;
151
+ const endpoint = `/finance/${this.invoiceId}/bank/sicred/download?timestamp=${new Date().getTime()}`;
152
152
 
153
153
  fetch(endpoint)
154
154
  .then(response => response.blob())
@@ -166,9 +166,14 @@ export default {
166
166
 
167
167
  this.isLoadingDownload = true;
168
168
 
169
- const url = ENTRYPOINT + `finance/${this.invoiceId}/bank/sicred/download?timestamp=${new Date().getTime()}`;
169
+ const url = `${ENTRYPOINT}/finance/${this.invoiceId}/bank/sicred/download?timestamp=${new Date().getTime()}`;
170
170
 
171
- axios.get(url, { responseType: 'blob' })
171
+ axios.get(url, {
172
+ responseType: 'blob',
173
+ headers: {
174
+ 'API-TOKEN': this.$store.getters['auth/user']?.token || ''
175
+ }
176
+ })
172
177
  .then(response => {
173
178
  const blob = new Blob([response.data], { type: 'application/pdf' });
174
179
  const blobUrl = URL.createObjectURL(blob);