From ef167ff064373ceff7002ae0f586b8d2730ea4b9 Mon Sep 17 00:00:00 2001 From: MaYuanhai <414199639@qq.com> Date: Sun, 30 Jun 2019 11:09:19 +0800 Subject: [PATCH 1/2] perf[clipboard.js]: remove redundant code (#2307) --- src/utils/clipboard.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/utils/clipboard.js b/src/utils/clipboard.js index e916a44d..cf5b07a1 100644 --- a/src/utils/clipboard.js +++ b/src/utils/clipboard.js @@ -22,14 +22,10 @@ export default function handleClipboard(text, event) { }) clipboard.on('success', () => { clipboardSuccess() - clipboard.off('error') - clipboard.off('success') clipboard.destroy() }) clipboard.on('error', () => { clipboardError() - clipboard.off('error') - clipboard.off('success') clipboard.destroy() }) clipboard.onClick(event) From 018c20a3f6f695be9de28aa651d2c1cc64c13cee Mon Sep 17 00:00:00 2001 From: Pan Date: Sun, 30 Jun 2019 16:07:54 +0800 Subject: [PATCH 2/2] bump: update axios for security vulnerability --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8fbbf88e..a57d8c89 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "url": "https://github.com/PanJiaChen/vue-element-admin/issues" }, "dependencies": { - "axios": "0.18.0", + "axios": "0.18.1", "clipboard": "2.0.4", "codemirror": "5.45.0", "driver.js": "0.9.5",