Use can use the DOM api inside Vue applications:
document.location.protocol
document.location.host
document.location.origin
protocol+'://'+host