<el-button type="primary" round size="mini" @click="copyUrl">復制url</el-button>
//js copyUrl() { const input = document.createElement('input') document.body.appendChild(input) input.setAttribute('value',"這里可以寫變量或者要復制的字符串內容") input.select() if (document.execCommand('copy')) { document.execCommand('copy') } document.body.removeChild(input)