Obtenez URL de base vuejs

var baseUrl = window.location.origin
Sergiu The Man