Skip to content

Commit d2a1e48

Browse files
Phạm Ngọc Hòasunshine17
Phạm Ngọc Hòa
authored andcommitted
perf: format pdf download (PanJiaChen#2791)
1 parent e870813 commit d2a1e48

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/views/pdf/download.vue

+11-11
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ export default {
2626
},
2727
methods: {
2828
fetchData() {
29-
import('./content.js').then(data => {
30-
const { title } = data.default
31-
document.title = title
32-
this.article = data.default
33-
setTimeout(() => {
34-
this.fullscreenLoading = false
35-
this.$nextTick(() => {
36-
window.print()
37-
})
38-
}, 3000)
39-
})
29+
import('./content.js').then(data => {
30+
const { title } = data.default
31+
document.title = title
32+
this.article = data.default
33+
setTimeout(() => {
34+
this.fullscreenLoading = false
35+
this.$nextTick(() => {
36+
window.print()
37+
})
38+
}, 3000)
39+
})
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)