Created
August 15, 2020 08:49
-
-
Save simonjcarr/4380e6c7e567dcc424053688f35ccc6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createRouter, createWebHistory } from "vue-router"; | |
| import Home from "../views/Home.vue"; | |
| const routes = [ | |
| { | |
| path: "/", | |
| name: "Home", | |
| component: Home | |
| } | |
| ]; | |
| const router = createRouter({ | |
| history: createWebHistory(process.env.BASE_URL), | |
| routes | |
| }); | |
| export default router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment