From 6c28fb52119d6225905404a1f39882b74aa6216b Mon Sep 17 00:00:00 2001 From: 21030442-mao Date: Thu, 8 Jul 2021 17:27:01 +0800 Subject: [PATCH] =?UTF-8?q?clipboard=E5=88=87=E6=8D=A2=E4=B8=BAvue-clipboa?= =?UTF-8?q?rd3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/layout/navBars/breadcrumb/setings.vue | 29 +++------- src/utils/commonFunction.ts | 65 +++++++++++++++++++++++ src/views/fun/clipboard/index.vue | 37 +++---------- 4 files changed, 79 insertions(+), 54 deletions(-) create mode 100644 src/utils/commonFunction.ts diff --git a/package.json b/package.json index 0e94471..1d37247 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ }, "dependencies": { "axios": "^0.21.1", - "clipboard": "^2.0.8", "countup.js": "^2.0.7", "cropperjs": "^1.5.12", "echarts": "^5.1.2", @@ -22,6 +21,7 @@ "sortablejs": "^1.14.0", "splitpanes": "^3.0.4", "vue": "^3.0.11", + "vue-clipboard3": "^1.0.1", "vue-grid-layout": "^3.0.0-beta1", "vue-i18n": "^9.1.4", "vue-router": "^4.0.8", diff --git a/src/layout/navBars/breadcrumb/setings.vue b/src/layout/navBars/breadcrumb/setings.vue index 6ccbcd4..9fdf241 100644 --- a/src/layout/navBars/breadcrumb/setings.vue +++ b/src/layout/navBars/breadcrumb/setings.vue @@ -356,7 +356,7 @@ icon="el-icon-document-copy" type="primary" ref="copyConfigBtnRef" - @click="onCopyConfigClick($event.target)" + @click="onCopyConfigClick" >{{ $t('message.layout.copyText') }} @@ -366,22 +366,19 @@