F 修复主机批量导入某些情况下错误使用默认密码的问题 #124

pull/137/head
vapao 2020-06-12 10:54:50 +08:00
parent 92706334fc
commit 257814a120
1 changed files with 1 additions and 1 deletions

View File

@ -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({