| | |
| | | name: 'file', |
| | | action: 'https://huacheng.psciio.com/api/huacheng-communitybackstage/communitypartybuilding/uploadimage', |
| | | headers: { |
| | | Authorization: `Bearer ${localStorage.getItem('token')}`, |
| | | Authorization: `Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOjE2MTc2LCJ0eXBlIjoxLCJleHAiOjE3NDM0OTM5NzYsImNyZWF0ZWQiOjE3NDIxOTc5NzY5NDB9.Lph5ktdjynkIhOdkfFa6pgPM9rQJ2bcGJdk8i9_GOs-ZRR79PrqWWgwgAXsUwOdYUInEDdP90uBXxvBV8SJhvA`, |
| | | }, |
| | | }; |
| | | |
| | |
| | | setLoading(false) |
| | | message.success('上传成功') |
| | | } |
| | | let list = newFileList.map((item) => { |
| | | if (item.status == 'done') { |
| | | if (!item.url) { |
| | | item.url = item.response.data; |
| | | } |
| | | } |
| | | return item.url |
| | | }); |
| | | setFileList(() => newFileList) |
| | | }; |
| | | |