fix
This commit is contained in:
parent
ae2160afcd
commit
880319c74b
|
@ -10,8 +10,10 @@ const router = {
|
||||||
return new URLSearchParams(location.search).get(key);
|
return new URLSearchParams(location.search).get(key);
|
||||||
},
|
},
|
||||||
|
|
||||||
push(url, state = history.state) {
|
push(url) {
|
||||||
history.pushState(Object.assign({buffer: router.buffer}, state), null, url);
|
const state = history.state || {};
|
||||||
|
state.buffer = router.buffer;
|
||||||
|
history.pushState(state, null, url);
|
||||||
},
|
},
|
||||||
|
|
||||||
update(replace) {
|
update(replace) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user