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

154
Visualizações
How to enter a particular filter via the route on which it is located

As a route I'm using something like this:

<router-link to="/gallery" ><i>{{webData.clickForMore}}</i><p>&#8594;</p></router-link>

So I'm trying to achieve to navigate the user by clicking on the route and navigate through the rute but on the specific filter.

This is the code which is being used to select a specific filter (which is located on the other Vue file):

async filterImages (blockNumber) {
          
          this.isReadyImg = this.nextImageState = false;
          this.isFilterActive = true;
          this.$store.commit('setGalleryFilterNumber', blockNumber);
          this.filteredImages = await this.$store.getters.getGalleryFilter;
          /*console.log(this.filteredImages)*/
          this.currImg = this.filteredImages[1];
          if (this.isFunction(this.currImg.src))  {
              let index = await this.$store.dispatch('getIndexOfImage', this.currImg);
              this.$store.commit('setGalleryIndex', index);
              await this.getImageSource();
          }
          else this.isReadyImg = true;
      
      let e = event.target;
      this.setActiveFilter(e);
    },

Can this be done without using dynamic route, maybe it can be done using v-for?

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