san-router icon indicating copy to clipboard operation
san-router copied to clipboard

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

Open jingxin2015 opened this issue 1 year ago • 0 comments

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

jingxin2015 avatar Jan 15 '24 01:01 jingxin2015