refs #6940 fix: use onMounted

This commit is contained in:
Javier Segarra 2024-02-28 06:38:25 +01:00
parent 99bb04bb0f
commit d863248177
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<script setup> <script setup>
import { computed, ref } from 'vue'; import { computed, ref, onMounted } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { Notify } from 'quasar'; import { Notify } from 'quasar';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'stores/useStateStore';
@ -89,6 +89,8 @@ function downloadPdfs() {
// prettier-ignore // prettier-ignore
return window.open(`${getApiUrl()}/api/Routes/downloadCmrsZip?ids=${cmrs.join(',')}&access_token=${token}`); return window.open(`${getApiUrl()}/api/Routes/downloadCmrsZip?ids=${cmrs.join(',')}&access_token=${token}`);
} }
onMounted(()=>{if(!stateStore.isRightDrawerShown())stateStore.toggleRightDrawer()})
</script> </script>
<template> <template>
<div class="column items-center"> <div class="column items-center">