<p class="inviteCode" id="inviteCode" v-text="short_url" v-show="0"></p>
<p class="invitation-member-team">
<span class="invitation-member-team-span" @click="invMember">邀请</span>更多成员加入团队吧!
</p>
created() {
this.short_url =
"资产云2.0全新升级,带给你不一样的用户体验,来http://platform.assetcloud.org.cn/#/login 注册登录,快来加入我们吧!!!"
},
invMember() {
var Url2 = document.getElementById("inviteCode").innerText;
var oInput = document.createElement("input");
oInput.value = Url2;
document.body.appendChild(oInput);
oInput.select();
document.execCommand("Copy");
oInput.className = "oInput";
oInput.style.display = "none";
this.$message({
message: "邀请信息已复制!",
type: "success",
});
},