2019年5月9日

beforeRouteEnter 与 beforeRouteUpdate(watch $route 对象) 的区别

摘要: 项目 | 区别 | 适用场景 | 网址 | | | beforeRouteEnter | beforeRouteEnter 守卫 不能 访问 this,因为守卫在导航确认前被调用,因此即将登场的新组件还没被创建。不过,你可以通过传一个回调给 next来访问组件实例。在导航被确认的时候执行回调,并且把 阅读全文

posted @ 2019-05-09 23:33 cag2050 阅读(1139) 评论(0) 推荐(0) 编辑

vue router 中,children 中 path 为空字符串的路由,是默认打开的路由(包括在 el-tabs 中嵌套路由的情况)

摘要: 详见该页面的最后一个代码块:https://router.vuejs.org/zh/guide/essentials/nested routes.html %E5%B5%8C%E5%A5%97%E8%B7%AF%E7%94%B1 阅读全文

posted @ 2019-05-09 20:30 cag2050 阅读(2681) 评论(0) 推荐(0) 编辑

el-tabs 使用

摘要: el tabs 使用 文章标题 | 网址 | | https://www.cnblogs.com/yuxiaole/p/9523735.html | https://www.jianshu.com/p/571d832382ee | https://lastvigo.github.io/2019/02 阅读全文

posted @ 2019-05-09 14:09 cag2050 阅读(2225) 评论(0) 推荐(0) 编辑

导航