diff --git a/.github/workflows/firebase-staging.yml b/.github/workflows/firebase-staging.yml index e7b03e6..e08b73a 100644 --- a/.github/workflows/firebase-staging.yml +++ b/.github/workflows/firebase-staging.yml @@ -2,7 +2,7 @@ # https://github.com/firebase/firebase-tools name: Firebase hosting staging -'on': +"on": push: branches: - main diff --git a/src/pages/pme/PrintReport.vue b/src/pages/pme/PrintReport.vue index 403bfef..2279794 100644 --- a/src/pages/pme/PrintReport.vue +++ b/src/pages/pme/PrintReport.vue @@ -21,16 +21,6 @@ import { } from '@/constants/pme'; export default { - // async mounted () { - // console.warn('mounted'); - // await fakeAwait(3000); - // await this.$htmlToPaper('print-container'); - // await this.$htmlToPaper('print-container', { - // styles: [ - // 'https://necolas.github.io/normalize.css/8.0.1/normalize.css', - // ], - // }); - // }, setup () { const route = useRoute(); const encounterId = route.params.encounter; @@ -46,9 +36,7 @@ export default { const userStore = useUserStore(); const currentUser = computed(() => userStore.$state.user); - const { - TEMPLATE_TOKENS_MAP, - } = pmeHelper(); + const { TEMPLATE_TOKENS_MAP } = pmeHelper(); const tokenDataSourceMap = { 'current-user': currentUser, @@ -253,7 +241,9 @@ export default { encounterDiagnosticOrders.value = result.diagnosticOrders; await fakeAwait(3000); - await print(); + // await print(); + window.focus(); + window.print(); } catch (e) { console.error(e); } finally {