提交 0b8a14f3 编写于 作者: A Arunoda Susiripala 提交者: Guillermo Rauch

Use existing route info when Router.reload() is called. (#1654)

Earlier, it tries to get that info from the location.href.
That's incorrect.
上级 8d2bbf94
......@@ -81,8 +81,8 @@ export default class Router {
if (route !== this.route) return
const { pathname, query } = this
const url = window.location.href
const { pathname, query } = parse(url, true)
this.events.emit('routeChangeStart', url)
const routeInfo = await this.getRouteInfo(route, pathname, query, url)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册