We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a1153e commit e0b0be3Copy full SHA for e0b0be3
src/components/SideBar.vue
@@ -6,7 +6,7 @@ const router = useRouter()
6
const routeNames = router
7
.getRoutes()
8
.map((route: RouteRecordNormalized) => route.name)
9
- .filter((name) => name != 'main')
+ .filter((name) => name != 'main' && name != 'Not found')
10
</script>
11
12
<template>
src/router/index.ts
@@ -45,7 +45,11 @@ const router = createRouter({
45
name: "Newton's cradle",
46
component: NewtonsCradleView
47
},
48
- { path: '/:pathMatch(.*)', component: MainView } // Fallback route
+ {
49
+ path: '/:pathMatch(.*)',
50
+ name: 'Not found',
51
+ component: MainView
52
+ }
53
]
54
})
55
0 commit comments