Добавлен vue-router

This commit is contained in:
Book Pauk
2019-01-02 16:50:11 +07:00
parent eef928eb8c
commit 3af5a38072
3 changed files with 23 additions and 6 deletions

14
client/router.js Normal file
View File

@@ -0,0 +1,14 @@
import Vue from 'vue';
import VueRouter from 'vue-router';
import App from './components/App.vue';
Vue.use(VueRouter);
let routes = [
{ path: '/', component: App },
{ path: '/cardindex', component: App },
];
export default new VueRouter({
routes
});