mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Return true instead of void (#3869)
This commit is contained in:
parent
99fb191286
commit
50fcefdf97
|
@ -135,7 +135,7 @@ export default class Router {
|
||||||
if (this.onlyAHashChange(as)) {
|
if (this.onlyAHashChange(as)) {
|
||||||
this.changeState(method, url, as)
|
this.changeState(method, url, as)
|
||||||
this.scrollToHash(as)
|
this.scrollToHash(as)
|
||||||
return
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
const { pathname, query } = parse(url, true)
|
const { pathname, query } = parse(url, true)
|
||||||
|
|
Loading…
Reference in a new issue