From 56982effcd42ea9c4f8e12a294194e74cce0fbea Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Wed, 24 Mar 2021 13:18:33 +0000 Subject: [PATCH] feat: support custom router base property - fixed #1561 --- pages/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/index.vue b/pages/index.vue index a73c4c058..44152ff8a 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -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) {