Error page

This commit is contained in:
2024-11-05 18:43:47 +01:00
parent c3d0cc2879
commit ce097e2098
19 changed files with 136 additions and 19 deletions

View File

@@ -14,10 +14,17 @@ import OrdersPage from "@/pages/account/ordersPage/index.vue";
import LoginPage from "@/pages/account/loginPage/index.vue"
import PreferencesPage from "@/pages/misc/preferencesPage/index.vue";
import HelpPage from "@/pages/misc/helpPage/index.vue"
import ErrorPage from "@/pages/misc/errorPage/index.vue"
const routes = [
// Main page
{ path: "/", component: HomePage },
{
path: "/:pathMatch(.*)*",
redirect: to => {
return { path: "/404" }
}
},
// Account
{ path: '/account/home', component: AccountHomePage },
@@ -44,7 +51,10 @@ const routes = [
{ path: '/search', component: SearchPage },
{ path: '/basket', component: BasketPage },
{ path: '/preferences', component: PreferencesPage },
{ path: '/help', component: HelpPage }
{ path: '/help', component: HelpPage },
// Error Page
{ path: "/404", component: ErrorPage }
]
export default routes