|
|
|
@@ -7,7 +7,6 @@ import { getDictSelectOption } from '@/services/system/dict'; |
|
|
|
import { to } from '@/utils/promise'; |
|
|
|
import { getFileListFromEvent, validateUploadFiles } from '@/utils/ui'; |
|
|
|
import { |
|
|
|
App, |
|
|
|
Button, |
|
|
|
Form, |
|
|
|
Input, |
|
|
|
@@ -15,6 +14,7 @@ import { |
|
|
|
Select, |
|
|
|
Upload, |
|
|
|
UploadFile, |
|
|
|
message, |
|
|
|
type ModalProps, |
|
|
|
type UploadProps, |
|
|
|
} from 'antd'; |
|
|
|
@@ -32,7 +32,6 @@ interface AddDatasetModalProps extends Omit<ModalProps, 'onOk'> { |
|
|
|
function AddDatasetModal({ typeList, tagList, onOk, ...rest }: AddDatasetModalProps) { |
|
|
|
const [uuid] = useState(Date.now()); |
|
|
|
const [clusterOptions, setClusterOptions] = useState<DictValueEnumObj[]>([]); |
|
|
|
const { message } = App.useApp(); |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
getClusterOptions(); |
|
|
|
|