|
|
|
@@ -11,7 +11,7 @@ import SubAreaTitle from '@/components/SubAreaTitle'; |
|
|
|
import { CommonTabKeys } from '@/enums'; |
|
|
|
import { createMirrorReq } from '@/services/mirror'; |
|
|
|
import { to } from '@/utils/promise'; |
|
|
|
import { mirrorNameKey } from '@/utils/sessionKeys'; |
|
|
|
import { getSessionItemThenRemove, mirrorNameKey } from '@/utils/sessionStorage'; |
|
|
|
import { getFileListFromEvent } from '@/utils/ui'; |
|
|
|
import { useNavigate } from '@umijs/max'; |
|
|
|
import { Button, Col, Form, Input, Row, Upload, UploadFile, message, type UploadProps } from 'antd'; |
|
|
|
@@ -56,14 +56,11 @@ function MirrorCreate() { |
|
|
|
}; |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
const name = sessionStorage.getItem(mirrorNameKey); |
|
|
|
const name = getSessionItemThenRemove(mirrorNameKey); |
|
|
|
if (name) { |
|
|
|
form.setFieldValue('name', name); |
|
|
|
setNameDisabled(true); |
|
|
|
} |
|
|
|
return () => { |
|
|
|
sessionStorage.removeItem(mirrorNameKey); |
|
|
|
}; |
|
|
|
}, []); |
|
|
|
|
|
|
|
// 创建公网、本地镜像 |
|
|
|
|