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

在手机浏览器中,params 包含中文时 router.go 无效 #347

Closed
Cople opened this issue Jan 22, 2016 · 0 comments
Closed

在手机浏览器中,params 包含中文时 router.go 无效 #347

Cople opened this issue Jan 22, 2016 · 0 comments

Comments

@Cople
Copy link

Cople commented Jan 22, 2016

在移动端里,如果 params 值包含中文,调用 router.go 后,虽然地址变了,但是组件并未切换,且地址中的参数也很奇怪。

测试 iOS 9.2 Safari、Android 中的微信 WebView 有这问题。
桌面浏览器、MX4 Android 5.1 自带浏览器无此问题。

this.$router.go({
  params: {
    keyword: "如果包含中文就挂了"
  }
});

https://jsfiddle.net/st9emuzj/6/

https://fiddle.jshell.net/st9emuzj/6/show/light/

@Cople Cople changed the title param 包含中文时 $router.go 无效 在手机浏览器中,params 包含中文时 router.go 无效 Jan 22, 2016
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