import VueRouter from 'vue-router'; let routes = [ { path: '/', component: require('./views/Home.vue') }, { path: '/about', component: require('./views/About.vue') }, { path: '/login', component: require('./views/Login.vue') }, { path: '/dashboard', component: require('./views/Dashboard.vue') } ]; export default new VueRouter({ routes });
Обсуждают сегодня