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

Fallback每次都会被命中?canOpen永远为true? #3

Open
huanxinyanyue opened this issue Aug 20, 2019 · 0 comments
Open

Fallback每次都会被命中?canOpen永远为true? #3

huanxinyanyue opened this issue Aug 20, 2019 · 0 comments

Comments

@huanxinyanyue
Copy link

MGJRouter.registerWithHandler("jizhi://") { (routerParameters) in print("没有人处理该 URL,就只能 fallback 到这里了") }

MGJRouter.registerWithHandler("jizhi://login/login") { (routerParameters) in print("routerParameters:\(routerParameters ?? [:])") }
MGJRouter.canOpen(url: "jizhi://main")永远返回true,
MGJRouter.open("jizhi://login/login", params, nil)【没有人处理该 URL,就只能 fallback 到这里了永远被打印出来】,print("routerParameters:(routerParameters ?? [:])")不执行

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

1 participant