摘要: 1、 2、使用: 阅读全文
posted @ 2020-12-09 17:03 银河游鱼 阅读(598) 评论(0) 推荐(0)
摘要: 1.在路由配置页面中引入组件。 2、在要对应的配置页面中添加映射关系: const routes = [ { path:'', //redirect重定向,默认打开的路径 redirect:'/home' }, { path:'/home', component:Home, children:[{ 阅读全文
posted @ 2020-12-09 14:14 银河游鱼 阅读(208) 评论(0) 推荐(0)
摘要: 1.不使用路由懒加载: import Home from '../components/Home' import About from '../components/About' import User from '../components/User' 2、使用路由懒加载: //路由懒加载的方式加 阅读全文
posted @ 2020-12-09 13:25 银河游鱼 阅读(159) 评论(1) 推荐(0)