получить базовый URL Vuejs
var baseUrl = window.location.origin
Sergiu The Man
var baseUrl = window.location.origin
this.url = new URL(location.href)