Try this code
var vm = new Vue({ created() { let urlParams = new URLSearchParams(window.location.search); console.log(urlParams.has('yourParam')); // true console.log(urlParams.get('yourParam')); // "MyParam" }, var vm = new Vue({ created() { let urlParams = new URLSearchParams(window.location.search); console.log(urlParams.has('yourParam')); // true console.log(urlParams.get('yourParam')); // "MyParam" }, });