diff --git a/vue/spa-router/src/router/index.ts b/vue/spa-router/src/router/index.ts index a49ae50..2596945 100644 --- a/vue/spa-router/src/router/index.ts +++ b/vue/spa-router/src/router/index.ts @@ -16,7 +16,8 @@ const router = createRouter({ // this generates a separate chunk (About.[hash].js) for this route // which is lazy-loaded when the route is visited. component: () => import('../views/AboutView.vue') - } + }, + { path: '/:pathMatch(.*)', component: NotFoundComponent } ] })