话不多说,上代码
先来看一下我的文件
路由文件 index.js:
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) export default new Router({ mode: