diff options
Diffstat (limited to 'src/main.js')
| -rw-r--r-- | src/main.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main.js b/src/main.js new file mode 100644 index 00000000..e4ae5c1a --- /dev/null +++ b/src/main.js @@ -0,0 +1,26 @@ +// The Vue build version to load with the `import` command +// (runtime-only or standalone) has been set in webpack.base.conf with an alias. +import Vue from 'vue' +import VueRouter from 'vue-router' +import App from './App' +import SignIn from './components/SignIn' + +const routes = [ + { path: '/', component: SignIn }, + { path: '/signin', component: SignIn } +] + +const router = new VueRouter({ + routes // short for routes: routes +}) + +Vue.use(VueRouter) + +/* eslint-disable no-new */ +new Vue({ + el: '#app', + template: '<app/>', + components: { App }, + router: router +}) + |
