mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-03-19 09:05:49 +00:00
refactor: move copy function to utils.js
This commit is contained in:
@@ -28,10 +28,12 @@
|
||||
this.visible = true;
|
||||
},
|
||||
copy: function (content = '') {
|
||||
copyToClipboard(content).then(() => {
|
||||
app.$message.success('{{ i18n "copied" }}')
|
||||
this.close();
|
||||
})
|
||||
ClipboardManager
|
||||
.copyText(content)
|
||||
.then(() => {
|
||||
app.$message.success('{{ i18n "copied" }}')
|
||||
this.close();
|
||||
})
|
||||
},
|
||||
close: function () {
|
||||
this.visible = false;
|
||||
|
||||
Reference in New Issue
Block a user