Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

217
Visualizações
How to fetch data in vueJS?

a column data is showing in array : ["1k","2k","3k"] I used foreach to filter and the data type is showing string and it shows like this again: ["1k","2k","3k"]

  1. If I convert this into an array then v-for loop does not show data.
  2. photographers data is the API action state. Output: I want to print each value in dropdown from this array.
  3. I am trying to do v-for on print.
  4. I tried to do print as a computed function but no result.
  5. If you want all code then I can print its too much logic that's why I have trimmed it which is required.

Thanks

code:

data() {
return {
 print: [],
  printPrice: [],
},
computed: {
getImageDetails(){ 
        this.photographersdata.forEach((details) => {
            if(details.id === parseInt(this.imageId)){
                this.print = details.print;
                this.printPrice = details.print_price;
            }
        })
    },```
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda