Skip to content

Commit

Permalink
perf: format pdf download (PanJiaChen#2791)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phạm Ngọc Hòa authored and PanJiaChen committed Nov 27, 2019
1 parent 25dddbb commit 53803d0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/views/pdf/download.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ export default {
},
methods: {
fetchData() {
import('./content.js').then(data => {
const { title } = data.default
document.title = title
this.article = data.default
setTimeout(() => {
this.fullscreenLoading = false
this.$nextTick(() => {
window.print()
})
}, 3000)
})
import('./content.js').then(data => {
const { title } = data.default
document.title = title
this.article = data.default
setTimeout(() => {
this.fullscreenLoading = false
this.$nextTick(() => {
window.print()
})
}, 3000)
})
}
}
}
Expand Down

0 comments on commit 53803d0

Please sign in to comment.