fix: no undef var error
This commit is contained in:
@@ -7,6 +7,7 @@ export default function useWindowResize() {
|
||||
width: window.innerWidth,
|
||||
height: window.innerHeight
|
||||
});
|
||||
console.log('size:', window.innerWidth, window.innerHeight);
|
||||
const [isMobile, setIsMobile] = useState<boolean>(false);
|
||||
const [isTablet, setIsTablet] = useState<boolean>(false);
|
||||
const [isDesktop, setIsDesktop] = useState<boolean>(false);
|
||||
|
||||
@@ -22,6 +22,7 @@ import {
|
||||
ModelscopeTaskMap,
|
||||
backendOptionsMap,
|
||||
backendTipsList,
|
||||
localPathTipsList,
|
||||
modelSourceMap,
|
||||
modelTaskMap,
|
||||
ollamaModelOptions,
|
||||
@@ -79,6 +80,7 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
|
||||
onSourceChange,
|
||||
onOk
|
||||
} = props;
|
||||
console.log('DataForm -> props');
|
||||
const [form] = Form.useForm();
|
||||
const intl = useIntl();
|
||||
const [modelTask, setModelTask] = useState<Record<string, any>>({
|
||||
|
||||
Reference in New Issue
Block a user