Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何在非 .vue 文件里使用 router 对象? #9

Open
zaxlct opened this issue May 13, 2018 · 5 comments
Open

如何在非 .vue 文件里使用 router 对象? #9

zaxlct opened this issue May 13, 2018 · 5 comments

Comments

@zaxlct
Copy link

zaxlct commented May 13, 2018

如何在非 .vue 文件里使用 router 对象?

比如我想做某个 JS 里获得当前的 router path,或者使用 router.push 方法

@zaxlct zaxlct changed the title 如何在非 .js 文件里使用 router 对象? 如何在非 .vue 文件里使用 router 对象? May 13, 2018
@F-loat
Copy link
Owner

F-loat commented May 13, 2018

目前应该是不支持,我最近尝试下重构,尽量和 vue-router 用法一致

@kala888
Copy link

kala888 commented Jul 6, 2018

@F-loat 希望尽快支持一下
Meituan-Dianping/mpvue#398

@F-loat
Copy link
Owner

F-loat commented Jul 6, 2018

近一两周会处理下这个问题

@kala888
Copy link

kala888 commented Jul 27, 2018

@F-loat 大神,有没有更新?

@zhaohuanlei
Copy link

同问

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants