From 04730a769a5a134e76a114f9f7d61fcf6dc48079 Mon Sep 17 00:00:00 2001 From: CPunisher <1343316114@qq.com> Date: Mon, 29 Mar 2021 11:48:59 +0800 Subject: [PATCH] image format --- src/components/param/ParamUpload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/param/ParamUpload.js b/src/components/param/ParamUpload.js index 69cb275..59026b5 100644 --- a/src/components/param/ParamUpload.js +++ b/src/components/param/ParamUpload.js @@ -17,7 +17,7 @@ const ParamUpload = ({ rendererIndex, paramIndex, onChange }) => ( key={"input_" + rendererIndex + "_" + paramIndex} id="image_upload" hidden={true} - accept=".jpg, .jpeg, .png" + accept="image/*" onChange={onChange} />