Unverified Commit 06e0befd authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Do not leave Promise unresolved (#7475)

parent 3f9e64f7
...@@ -250,7 +250,7 @@ export default class Router implements BaseRouter { ...@@ -250,7 +250,7 @@ export default class Router implements BaseRouter {
this.changeState(method, url, as) this.changeState(method, url, as)
this.scrollToHash(as) this.scrollToHash(as)
Router.events.emit('hashChangeComplete', as) Router.events.emit('hashChangeComplete', as)
return true return resolve(true)
} }
const { pathname, query } = parse(url, true) const { pathname, query } = parse(url, true)
......
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