Closed Preyou closed 1 year ago
无
带有中文路径的路由
刷新后进入当前路由
进入404路由
在这里,非英文会被编码,因此要先解码再匹配,这一行应该改成这样 push(decodeURI(routerHistory.location))
push(decodeURI(routerHistory.location))
Don't open issues without reproductions. Thanks.
Reproduction
无
Steps to reproduce the bug
带有中文路径的路由
Expected behavior
刷新后进入当前路由
Actual behavior
进入404路由
Additional information
在这里,非英文会被编码,因此要先解码再匹配,这一行应该改成这样
push(decodeURI(routerHistory.location))