From 2176c6e259a97edbdd2f67e47f7ec6bd2ca10c07 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Thu, 12 Sep 2024 11:47:05 -0300 Subject: [PATCH] Fix ticket print --- src/pages/Ecomerce/TicketView.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pages/Ecomerce/TicketView.vue b/src/pages/Ecomerce/TicketView.vue index 5e26df9c..a164514a 100644 --- a/src/pages/Ecomerce/TicketView.vue +++ b/src/pages/Ecomerce/TicketView.vue @@ -15,6 +15,7 @@ const route = useRoute(); const userStore = useUserStore(); const appStore = useAppStore(); const { isHeaderMounted } = storeToRefs(appStore); +const { user, token } = storeToRefs(userStore); const ticket = ref({}); const rows = ref([]); @@ -39,8 +40,8 @@ onMounted(async () => { const onPrintClick = () => { const params = new URLSearchParams({ - access_token: userStore.token, - recipientId: userStore.id, + access_token: token.value, + recipientId: user.value.id, type: 'deliveryNote' }); window.open( @@ -60,10 +61,7 @@ const onPrintClick = () => { /> - +