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

196
Views
El enrutador Vue no puede cargar la ruta secundaria

Estoy tratando de configurar el enrutador en mi aplicación Vue. Todo parecía funcionar bien hasta que comencé a intentar implementar rutas para niños. Ahora, cuando intento acceder a la ruta secundaria, aparece un mensaje de error junto con algunas advertencias: ¿Qué sucede cuando hago clic en el enlace del enrutador secundario?

Configuración de mi enrutador:

 const router = createRouter({ history: createWebHistory(), routes: [ { path: '/', redirect: '/welcome' }, { name: 'welcome', path: '/welcome', component: WelcomePage }, { name:'noteLists', path: '/noteLists', component: NoteListLinks, children: [ { name:'noteListSheets', path: ':id', components: FullNoteSheet } ] } ], linkActiveClass: 'active'

});

Todos los demás enlaces de ruta funcionan bien.

La plantilla de componentes donde se usan y representan los enlaces secundarios se ve así:

 <template> <router-link :to="setNoteListLink(entry.id)" :key=entry.id v-for="entry in notesListEntry" > {{entry.name}} </router-link> <router-view></router-view>

La función setNoteListLink solo crea enlaces como '/noteList/1'.

El error dice que "No se puede leer la propiedad 'writeDebug' de undefined" y writeDebug es un método en un componente que intenta cargar cuando hago clic en la ruta (FullNoteSheet), así que asumo que hay algún problema con el componente y no el enrutador Pero el componente funciona bien si trato de cargarlo por separado, simplemente colocándolo en la plantilla del componente de la aplicación.

Si ha lidiado con estos problemas y conoce la solución, hágamelo saber.

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

0

Tiene un error tipográfico en la ruta noteListSheets ; Debe ser component: FullNoteSheet no components: FullNoteSheet

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!