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

243
Vistas
Vue <router-link> not working when swipe back on iOS

I have an App.vue page that contains 2 columns. The first column is a list of users, the second column is a list of messages. When I click on a user in column 1, the message list will be loaded corresponding to that user. I show/hide column 1 and column 2 according to the following condition

<div class="row">
    <div class="col col-12 col-lg-4 idcvs" v-show="!this.mobileMode || typeof $route.params.id == 'undefined'">
        <ListConversation />
    </div>
    <div class="col col-12 col-lg-8 idchat" v-show="!this.mobileMode || $route.params.id > 0">
        <router-view :key="$route.path" />
    </div>
</div>

My problem is on Mobile interface iOS. When I use the back button of the browser (safari, chrome) everything works properly but when I swipe back, on my first click on an user in the list, nothing happens. All activity return only in 2nd click.

(Translated by Google)

Screen record

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I would asume your id doesn't get set right. Can you share the code of what happens when you swipe left?

I also think it's not necessary to use 'typeof'.

v-show="!this.mobileMode || !$route.params.id" should work as well

about 4 years ago · Juan Pablo Isaza Denunciar
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