methods: { copyURL() { var Url = this.$refs.mylink; Url.innerHTML = window.location.href; console.log(Url.innerHTML) Url.select(); document.execCommand("copy"); } }