Skip to content

Commit 37976d8

Browse files
committed
fix
1 parent 3f13f1a commit 37976d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers/query.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ export function getQuery () {
66

77
export function updateQuery (query) {
88
const { origin, pathname} = window.location
9-
const newUrl = origin + pathname + '/?' + qs.stringify(
9+
const newUrl = origin + pathname + '?' + qs.stringify(
1010
{ ...getQuery(), ...query },
1111
{ encode: false }
1212
)
13+
console.log(newUrl)
1314
window.history.pushState({
1415
path: newUrl,
1516
}, '', newUrl)

0 commit comments

Comments
 (0)