From f2ce66fa01fb78ffb51bb68d5166d17bb24c7653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= Date: Mon, 11 Apr 2022 14:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A7=94=E6=89=98=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E6=96=87=E4=BB=B6=E9=87=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/military/components/Upload.jsx | 7 ++++--- src/military/task/myTask/index.jsx | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/military/components/Upload.jsx b/src/military/components/Upload.jsx index e1ab4cd05..20da29c48 100644 --- a/src/military/components/Upload.jsx +++ b/src/military/components/Upload.jsx @@ -7,9 +7,10 @@ function Uploads({ className, size, actionUrl, fileList, showNotification, load const [files, setFiles] = useState(undefined); useEffect(() => { - if (fileList) { - init(); - } + // if (fileList) { + // init(); + // } + init(); }, [fileList]); function init() { diff --git a/src/military/task/myTask/index.jsx b/src/military/task/myTask/index.jsx index 5c5b7083f..027759da2 100644 --- a/src/military/task/myTask/index.jsx +++ b/src/military/task/myTask/index.jsx @@ -19,7 +19,6 @@ for (const item of taskStatusAllArr) { } export default ({ location, history, current_user, showNotification }) => { - console.log(current_user); let defaultValue = decodeURI(location.search.split("=")[1] || ""); const [identity, setIdentity] = useState('1');