fix: redesing and add features
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
import Pokedex from "./components/Pokedex.vue";
|
||||
import Page404 from "./components/404.vue";
|
||||
import About from "./components/About.vue";
|
||||
import Home from "./pages/Home.vue";
|
||||
import Pokedex from "./pages/Pokedex.vue";
|
||||
import NotFound from "./pages/NotFound.vue";
|
||||
|
||||
const routes = [
|
||||
{ path: "/", component: About, name: "home" },
|
||||
{ path: "/", component: Home, name: "home" },
|
||||
{ path: "/pokemon/:id", component: Pokedex, name: "pokemon" },
|
||||
{ path: "/about", component: About, name: "about" },
|
||||
{ path: "/:catchAll(.*)", component: Page404, name: "404" },
|
||||
{ path: "/home", component: Home, name: "home-alias" },
|
||||
{ path: "/:catchAll(.*)", component: NotFound, name: "404" },
|
||||
];
|
||||
|
||||
const history = createWebHistory();
|
||||
|
||||
Reference in New Issue
Block a user