Skip to content

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

@Cople

Description

@Cople

在移动端里,如果 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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions