import { createRouter, createWebHistory } from "vue-router"; import Mark from "@/components/mark/Mark.vue"; const routes = [ { path: "/", component: Mark }, { path: "/mark", component: Mark }, ]; // 3. Create the router instance and pass the `routes` option // You can pass in additional options here, but let's // keep it simple for now. const router = createRouter({ // 4. Provide the history implementation to use. We are using the hash history for simplicity here. history: createWebHistory(), routes, // short for `routes: routes` }); export default router;