提交 efbf0efc 编写于 作者: N nkzawa

fix query for getInitialProps is not parsed as an object

上级 027622f6
......@@ -26,7 +26,7 @@ export default class Router {
onPopState (e) {
this.abortComponentLoad()
const { pathname, query } = parse(window.location.href)
const { pathname, query } = parse(window.location.href, true)
const route = (e.state || {}).route || toRoute(pathname)
Promise.resolve()
......@@ -66,7 +66,7 @@ export default class Router {
if (route !== this.route) return
const { pathname, query } = parse(window.location.href)
const { pathname, query } = parse(window.location.href, true)
let data
let props
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册