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

216
Views
Manejo de puntos en parámetros de vue-router usando vue 3

Si los parámetros de ruta contienen punto (.) vue redirija la ruta a 404. En vue 2 podemos permitir/manejar el punto en los parámetros del enrutador usando la siguiente regla en el paquete web:

 devServer: { historyApiFallback: { disableDotRule: true } }

Pero vue 3 usa vite en lugar de webpack. ¿Cómo manejar el punto en los parámetros ahora?

ejemplo de ruta son los siguientes:

 { path: your-route/:params", component: somecomponent, }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Tuve el mismo problema y, según uno de los comentarios de las preguntas, fui al problema de github sobre este problema y recomendaron un complemento para vite que lo resuelve.

instalarlo con

 npm install --save-dev vite-plugin-rewrite-all

Y agréguelo a vite.config.js

 import pluginRewriteAll from 'vite-plugin-rewrite-all'; export default { plugins: [pluginRewriteAll()] }

Consulte el problema de github https://github.com/vitejs/vite/issues/4344

Y el github del complemento https://github.com/ivesia/vite-plugin-rewrite-all .

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!