diff --git a/src/pages/ShowInfo.tsx b/src/pages/ShowInfo.tsx index 71e7d8f..719c284 100644 --- a/src/pages/ShowInfo.tsx +++ b/src/pages/ShowInfo.tsx @@ -10,6 +10,7 @@ import { Form, Image } from 'antd'; import React, { useState } from 'react'; // @ts-ignore import cookie from 'react-cookies'; +import axios from 'axios'; const ShowInfoDemo: React.FC = () => { const [form] = Form.useForm(); const [imageUrl, setImageUrl] = useState(''); @@ -27,7 +28,7 @@ const ShowInfoDemo: React.FC = () => { { maxCount: 1, name: 'file', // beforeUpload: beforeUploadFile, - data: { path: 'project/files' }, headers: { 'X-CSRFToken': cookie.load('csrftoken'), - Authorization: `Bearer ${localStorage.getItem('access') || ''}`, }, }} > @@ -72,6 +71,7 @@ const ShowInfoDemo: React.FC = () => { } // 配置 submitter > { if (name1) { console.log(name1, 'ProFormDependency_name1'); return ( - + ); } return <>;