import Vue from 'vue' import Router from 'vue-router' import activity from '@/components/activity.vue' import ranking from '@/components/ranking.vue' Vue.use(Router) export default new Router({ mode: 'history', routes: [{ path: '/', name: 'activity', component: activity }, { path: '/ranking/:token', name: 'ranking', component: ranking }] })