Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

386
Views
Quasar Vue 3 route.push() no es una función

Cuando intento enrutar a otra página en js, aparece el error:

 Uncaught TypeError: route.push is not a function

fragmento de código:

 import { useRoute } from "vue-router"; const route = useRoute(); function openApp() { route.push("/#/home"); };

cuando uso una etiqueta de anclaje alrededor de un btn, el enrutamiento funciona

 <a href="/#/home"> <q-btn class="q-ma-md" color="primary" icon="check" label="OK" /> </a>

Cualquier idea, gracias

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Hay una diferencia entre useRoute y useRouter

Prueba esto:

 import { useRouter } from "vue-router"; const router = useRouter(); router.push("/#/home");
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!