How to get the route for the current page

how to get the route for the current page http://localhost:3000/search-results?keyword=%E4%B9%B3%E8%85%BA%E7%99%8C&range=%E5%85%A5%E9%99%A2%E8%AE%B0%E5%BD%95,%E7%97%85%E7%A8%8B%E8%AE%B0%E5%BD%95, % E5% 87% BA% E9% 99% A2% E5% B0% 8F% E7% BB% 93 http://localhost:3000% E6% 89% 8B% E6% 9C% AF% E8% AE% B0% E5% BD% 95
that is, the part after with the parameter

May.22,2021

router.split ('?) [1]


window.document.location.pathname

if you use vue-router, to get this directly

this.$route.query// object

this.$route.query

Menu