refactor
This commit is contained in:
parent
98bf4532aa
commit
6c8c0939b4
8 changed files with 27 additions and 14 deletions
|
@ -49,7 +49,6 @@ export default defineComponent({
|
|||
const fileURL = window.URL.createObjectURL(new Blob([response.data]));
|
||||
const fileLink = this.$refs.download as HTMLAnchorElement;
|
||||
fileLink.href = fileURL;
|
||||
console.log(this.data);
|
||||
fileLink.setAttribute(
|
||||
"download",
|
||||
this.data.others == "pdf" ? `${this.data.title}.pdf` : `${this.data.title}.png`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue