dayoff/assets/main.js
Anton Vakhrushev a002d130e0 Добавил роутинг
И всякие косметические правки
2020-03-02 22:26:02 +03:00

25 lines
471 B
JavaScript

import Vue from 'vue';
import VueRouter from 'vue-router';
import App from './App.vue';
import TimerPage from './TimerPage.vue';
import StatisticsPage from './StatisticsPage.vue';
Vue.use(VueRouter);
const routes = [
{ path: '/', name: 'timer', component: TimerPage },
{ path: '/statistics', name: 'statistics', component: StatisticsPage },
];
const router = new VueRouter({
routes,
});
new Vue({
el: '#app',
router,
// store,
render: h => h(App),
});