perf: format pdf download (#2791)
This commit is contained in:
parent
b70cc183d6
commit
b2f8373a5b
|
@ -26,17 +26,17 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchData() {
|
fetchData() {
|
||||||
import('./content.js').then(data => {
|
import('./content.js').then(data => {
|
||||||
const { title } = data.default
|
const { title } = data.default
|
||||||
document.title = title
|
document.title = title
|
||||||
this.article = data.default
|
this.article = data.default
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.fullscreenLoading = false
|
this.fullscreenLoading = false
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
window.print()
|
window.print()
|
||||||
})
|
})
|
||||||
}, 3000)
|
}, 3000)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue