From c1b73d9960f39aa33f00ed3c5d4d5e75093d8896 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Tue, 19 Jan 2021 15:48:49 +0800 Subject: [PATCH] Fix accept in readFile --- libs/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/utils.js b/libs/utils.js index 953af106..13d26f10 100644 --- a/libs/utils.js +++ b/libs/utils.js @@ -870,8 +870,9 @@ utils.prototype.readFile = function (success, error, accept, readType) { else core.platform.fileReader.readAsDataURL(core.platform.fileInput.files[0]); core.platform.fileInput.value = ''; } - if (accept) core.platform.fileInput.accept = accept; } + core.platform.fileInput.value = ''; + if (accept) core.platform.fileInput.accept = accept; core.platform.fileInput.click(); }