diff --git a/spug_web/src/pages/host/Import.js b/spug_web/src/pages/host/Import.js index 0c7657f..0f4775e 100644 --- a/spug_web/src/pages/host/Import.js +++ b/spug_web/src/pages/host/Import.js @@ -6,13 +6,12 @@ import React, { useState } from 'react'; import { observer } from 'mobx-react'; import { UploadOutlined } from '@ant-design/icons'; -import { Modal, Form, Input, Upload, Button, Tooltip, Alert, Cascader, message } from 'antd'; +import { Modal, Form, Upload, Button, Tooltip, Alert, Cascader, message } from 'antd'; import http from 'libs/http'; import store from './store'; export default observer(function () { const [loading, setLoading] = useState(false); - const [password, setPassword] = useState(''); const [fileList, setFileList] = useState([]); const [groupId, setGroupId] = useState([]); @@ -22,7 +21,6 @@ export default observer(function () { const formData = new FormData(); formData.append('file', fileList[0]); formData.append('group_id', groupId[groupId.length - 1]); - if (password) formData.append('password', password); http.post('/api/host/import/', formData, {timeout: 120000}) .then(res => { Modal.info({ @@ -83,12 +81,6 @@ export default observer(function () { fieldNames={{label: 'title'}} placeholder="请选择"/> -