vue路由去除#

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
    }]
})

 

posted @ 2018-04-19 14:43  monkye  阅读(1244)  评论(0编辑  收藏  举报