mpvue-router-patch
mpvue-router-patch copied to clipboard
如何在非 .vue 文件里使用 router 对象?
如何在非 .vue 文件里使用 router 对象?
比如我想做某个 JS 里获得当前的 router path,或者使用 router.push 方法
目前应该是不支持,我最近尝试下重构,尽量和 vue-router 用法一致
@F-loat 希望尽快支持一下 https://github.com/Meituan-Dianping/mpvue/issues/398
近一两周会处理下这个问题
@F-loat 大神,有没有更新?
同问