diff --git a/vue/spa-router/src/router/index.ts b/vue/spa-router/src/router/index.ts index 2596945..a49ae50 100644 --- a/vue/spa-router/src/router/index.ts +++ b/vue/spa-router/src/router/index.ts @@ -16,8 +16,7 @@ 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 } + } ] })