摘要: 1、全局守卫(在所有路由展示前触发)//在main.js中 router.beforeEach((to, from, next) => { to 即将要进入的到的路由,值为路由 from 离开的路由(从哪个路由离开),值为路由 next 值为函数,这个函数决定你接下来要展示的路由页面 }) 在页面点 阅读全文
posted @ 2019-08-28 13:57 彩色泡泡 阅读(182) 评论(0) 推荐(0) 编辑