feat: support custom router base property - fixed #1561

This commit is contained in:
Liyas Thomas
2021-03-24 13:18:33 +00:00
committed by GitHub
parent 8a52b0fbd6
commit 56982effcd

View File

@@ -1635,7 +1635,9 @@ export default {
history.replaceState(
window.location.href,
"",
`/?${encodeURI(flats.concat(deeps, bodyParams).join("").slice(0, -1))}`
`${this.$router.options.base}?${encodeURI(
flats.concat(deeps, bodyParams).join("").slice(0, -1)
)}`
)
},
setRouteQueries(queries) {