fix:修复普通用户无法复制分享链接问题

This commit is contained in:
czhqwer
2025-03-30 19:19:12 +08:00
parent 2409e6f037
commit f49aa8f2ca

View File

@@ -16,7 +16,7 @@
<label>分享地址</label>
<div class="address-box">
<span class="address">{{ shareAddress }}</span>
<el-button type="text" class="copy-btn" @click="copyAddress">
<el-button type="text" class="copy-btn" @click="copyLink(shareAddress)">
<i class="el-icon-document-copy"></i>
</el-button>
</div>
@@ -230,15 +230,6 @@ export default {
}
}
},
copyAddress() {
navigator.clipboard.writeText(this.shareAddress)
.then(() => {
this.$message.success('分享地址已复制');
})
.catch(() => {
this.$message.error('复制分享地址失败');
});
}
},
computed: {
},