|
|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import React, { useEffect, useState, useRef, useCallback } from 'react';
|
|
|
|
|
import { getToken } from '@/utils/auth';
|
|
|
|
|
import {
|
|
|
|
|
Modal,
|
|
|
|
|
Form,
|
|
|
|
|
@ -502,6 +503,7 @@ const AddComponentModal = ({ visible, baseInfo, setVisible, onReFresh, mode = 'c
|
|
|
|
|
return (
|
|
|
|
|
<Upload
|
|
|
|
|
action="/api/v1/bpms-workbench/fileSystem/fileUpload"
|
|
|
|
|
headers={{ Authorization: getToken() }}
|
|
|
|
|
fileList={file ? [file] : initialImageUrl ? [{ url: initialImageUrl, status: 'done' }] : []}
|
|
|
|
|
showUploadList={false}
|
|
|
|
|
onChange={(_, currentFile: any) => {
|
|
|
|
|
|