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