mpvue-router-patch
mpvue-router-patch copied to clipboard
🛴在 mpvue 中使用 vue-router 兼容的路由写法
打开页面 : pages/xxx?id=1 然后 打开页面 : pages/xxx?id=2 然后 返回 this.$route.query 里还是id = 2 另外 router 的 beforeEach 能否也考虑设计下?跳转登录的,没有这个比较蛋疼
在某一个mpvue编译成h5的问题下面看到了老哥提的一个 用uni比较好 然后我把我mpvue的项目迁移到uni项目里(https://ask.dcloud.net.cn/article/34945) mpvue{ mpvue-router-patch, mpvue-entry } mpvue-router-patch包里面报错了  请问,有什么解决方法
 我在tab页面点击返回按钮,然后返回上一个tab页面 请问应该如何使用?谢谢
就是我假如,底部的tab是在pages文件夹, 其他详情页,或者不是主页面都放在了views, 那我是要怎么实现路由跳转? 安装了mpvue-router-patch, 我管理的路由文件是 在src/router/index.js
是否支持别名
如下配置 alias: '/login' this.$router.push('/login') ````jjs { alias: '/login', path: '/pages/login/index', name: 'LoginIndex', meta: { title: '登陆' }, config: { enablePullDownRefresh: false } } ``
如何在非 .vue 文件里使用 router 对象? 比如我想做某个 JS 里获得当前的 router path,或者使用 router.push 方法
之前项目习惯根据name跳转 路由有问题改起来方便有木有 ~ 也少写些代码 哈哈 
我根据你的源码做了一个支持beforeEach、beforeEnter的。 这是[代码](https://github.com/lrnman/MallWebFront/blob/dev/src/utils/router.js)。 我代码效率、规范以及对vue-router的from\to不是兼容的。 所以请问能否下一个版本官方支持导航守卫?