Fix the 404 page for vue3

This commit is contained in:
Kevin MacMartin 2022-08-01 17:31:24 -04:00
parent 026ef6193b
commit 254ecb57cc

View file

@ -52,7 +52,7 @@ const router = new createRouter({
{ path: "/", component: HomePage },
{ path: "/blog", component: BlogPage },
{ path: "/contact", component: ContactPage },
{ path: "/*", component: Error404Page }
{ path: "/:match(.*)", component: Error404 }
],
scrollBehavior(to, from, savedPosition) {