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

230
Views
El '#' en mi URL no es correcto cuando uso vue-router con express

La URL se muestra como

localhost:3000/ índice# /panel

pero no

localhost:3000/ índice/# /panel

Está como cableado.

Aquí está mi código express.

 app.get('/index', function (req, res) { const html = fs.readFileSync('index.html', 'utf-8'); res.send(html); });

Y mi código de vue-router.

 { name: 'dashboard', path: '/dashboard', component: require('../views/dashboard.vue') }
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Intente configurar el mode: 'history' en su VueRouter

 const router = new VueRouter({ mode: 'history', routes: [...] })

Para obtener más información también con express, consulte Vue Router HTML5 history mdoe

about 4 years ago · Santiago Trujillo 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!