From 4abab076d7470dd686c13c47b106542a3a65161d Mon Sep 17 00:00:00 2001 From: chunquansang <916920620@è¯@qq.com> Date: Thu, 21 Dec 2023 10:23:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=87=E4=BB=B6=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ShowInfo.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 <>;