perf: format pdf download (#2791)

This commit is contained in:
Phạm Ngọc Hòa 2019-11-27 09:06:28 +07:00 committed by 花裤衩
parent 25dddbbce8
commit 53803d067d
1 changed files with 11 additions and 11 deletions

View File

@ -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)
})
}
}
}