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

2.0.2版本的类型文件有错误 type Mode = 'hash' | 'history' #73

Open
jingxin2015 opened this issue Jan 15, 2024 · 0 comments
Open

Comments

@jingxin2015
Copy link

jingxin2015 commented Jan 15, 2024

类型定义的是:
type Mode = 'hash' | 'history';
但是代码里判断的时候是使用的 'html5',导致 setMode('history') 方法获取到的 locator 仍然是 HashLocator
另外 Router 也缺少带参数的构造,导致在 ts 下自定义路由实例时不能传参呀

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