From 257814a120128b3c2c14eaa44f74b5a11d2c515c Mon Sep 17 00:00:00 2001 From: vapao Date: Fri, 12 Jun 2020 10:54:50 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E4=B8=BB=E6=9C=BA?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=AF=BC=E5=85=A5=E6=9F=90=E4=BA=9B=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E9=94=99=E8=AF=AF=E4=BD=BF=E7=94=A8=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=AF=86=E7=A0=81=E7=9A=84=E9=97=AE=E9=A2=98=20#124?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/host/Import.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_web/src/pages/host/Import.js b/spug_web/src/pages/host/Import.js index 6e5d2aa..c9169b3 100644 --- a/spug_web/src/pages/host/Import.js +++ b/spug_web/src/pages/host/Import.js @@ -24,7 +24,7 @@ class ComImport extends React.Component { this.setState({loading: true}); const formData = new FormData(); formData.append('file', this.state.fileList[0]); - formData.append('password', this.state.password); + if (this.state.password) formData.append('password', this.state.password); http.post('/api/host/import/', formData, {timeout: 120000}) .then(res => { Modal.info({