文章目录 总体流程图 路由 页面切换 后端接口照应 前端页面引入api接口js文件 例子 总体流程图 路由 router/index.js 页面切换 views/form 后端接口照应 api/user.js 前端页面引入api接口js文件 例子 路由配置,router/index.js { path: '/teacher', component: Layout, redirect: '/teacher/table', name: &#