From b70b5e9cf0d7c1ef66e7ef98f2a1f5edd8565891 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 19 Mar 2021 14:23:46 +0100 Subject: feat: reset vue projet to start --- src/router/index.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/router/index.js (limited to 'src/router/index.js') diff --git a/src/router/index.js b/src/router/index.js new file mode 100644 index 0000000..5dc4e51 --- /dev/null +++ b/src/router/index.js @@ -0,0 +1,22 @@ +import Vue from 'vue' +import VueRouter from 'vue-router' + +import Home from '@/views/Home.vue' + +Vue.use(VueRouter) + +const routes = [ + { + path: '/', + name: 'Home', + component: Home, + } +] + +const router = new VueRouter({ + mode: 'history', + base: process.env.BASE_URL, + routes +}) + +export default router -- cgit v1.2.3-18-g5258