From 3a353ff50555bec01f162c0e8e9550d3bc92810b Mon Sep 17 00:00:00 2001 From: Michael Bai Date: Mon, 1 Nov 2021 14:39:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DUploadKey=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FormFields/UploadKey.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/FormFields/UploadKey.vue b/src/components/FormFields/UploadKey.vue index bb99cac69..a90049dbd 100644 --- a/src/components/FormFields/UploadKey.vue +++ b/src/components/FormFields/UploadKey.vue @@ -26,10 +26,6 @@ export default { if (e.target.files.length === 0) { return } - const file_name = e.target.files[0].name - if (file_name.substr(-5) !== '.json') { - return - } const vm = this const reader = new FileReader() reader.onload = function() {