vue根据后端菜单自动生成路由(动态路由) router.js import Vue from 'vue' import Router from 'vue-router' import store from '../store' import generateRouter from './generateRouter' import cookie from './cookie.js' Vue.use(Router) let router = new Router() const getRoute