Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

127
Vistas
Vue component pb with functions from vuex file

When i use one of my functions situated in vuex js file, this error appear in the console.

https://i.stack.imgur.com/G4xY0.png

Here's the code of the function in the vuex js file :

mutations: {
    getPdfByReportId(reportId)
    {
        axios(
        {
            url:"http://localhost:9080/api/pdf/"+reportId,
            method:"GET", 
            responseType:'blob'
        }).then(response => 
        {
            //Download the pdf
            const blob = new Blob([response.data], { type: 'application/pdf' })
            const link = document.createElement('a')
            link.href = URL.createObjectURL(blob)
            link.download = "report.pdf"
            link.click()
            URL.revokeObjectURL(link.href)
        });
    },

and here's where i use it :

<v-icon style="cursor:pointer;" class="rounded-circle" @click="this.$store.commit('getPdfByReportId', item.reportId)" v-bind="props">mdi-download</v-icon>```
  
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda