vue配置最开始进入的页面

import Vue from 'vue'
import Router from 'vue-router'
import movieRouter from './Movie'
import cinemaRouter from './Cinema'
import mineRouter from './Mine'

Vue.use(Router);

export default new Router({
  mode: 'history',
  //base: process.env.BASE_URL,
  base:'miaomiao',
  routes: [
    movieRouter,cinemaRouter,mineRouter,
    {
      path:"/",
      redirect:"/movie"
    }
  ]
})

你可能感兴趣的:(Vue是个好东西)