4paradigm / 4paradigm/FeatInsight

Update active menu item when watching the changes

Abierto
#6 0 comentarios 0 reacciones 1 asignado Reclamado por @tobegit3hub Ver en GitHub
Lenguaje dominante
Vue
Estrellas
22
Forks
9
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Here is the example code.

```




Component A


Component B


Component C


Component D



export default {
data() {
return {
activeMenu: 'component-a',
};
},
watch: {
$route(to, from) {
this.activeMenu = to.name || 'component-a';
},
},
};

```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

The issue shows a Vue component with a menu that should update its active item based on route changes. The watch on $route is already present. Look for the component file in the repository, likely in a src/components or src/views directory. Check if the route names match the menu item keys. Verify the component works by running the app and navigating. The fix may involve ensuring the route name is correctly set or adjusting the key mapping.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript
Área
frontend
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.