Commit 0b8a14f3 authored by Arunoda Susiripala's avatar Arunoda Susiripala Committed by 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.
parent 8d2bbf94
...@@ -81,8 +81,8 @@ export default class Router { ...@@ -81,8 +81,8 @@ export default class Router {
if (route !== this.route) return if (route !== this.route) return
const { pathname, query } = this
const url = window.location.href const url = window.location.href
const { pathname, query } = parse(url, true)
this.events.emit('routeChangeStart', url) this.events.emit('routeChangeStart', url)
const routeInfo = await this.getRouteInfo(route, pathname, query, url) const routeInfo = await this.getRouteInfo(route, pathname, query, url)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment