From b2f8373a5b149b874e27b953e5b1bbd7be4c82ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20Ng=E1=BB=8Dc=20H=C3=B2a?= Date: Wed, 27 Nov 2019 09:06:28 +0700 Subject: [PATCH] perf: format pdf download (#2791) --- src/views/pdf/download.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/pdf/download.vue b/src/views/pdf/download.vue index bd0b3be2..a348c697 100644 --- a/src/views/pdf/download.vue +++ b/src/views/pdf/download.vue @@ -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) + }) } } }