Vue how to get the current page url of the current page, obtain routing address
Url can complete window.location.href
the routing path can be this.$route.path
routed path parameters this.$route.params
such as: / user /: id → / user / 2044011030 → this $ route.params.id.
Routing query parameters this.$route.query
such as: / user / search name = sf → this $ route?. .query.name