import * as React from 'react'; import { Link } from 'react-router-dom'; import { IconButton } from './button'; import ReturnIcon from "../icons/return.svg"; const RecordApp: React.FC = () => { const [account, setAccount] = React.useState(''); const [password, setPassword] = React.useState(''); // 点击导出 const onClickExport = async (data: { account: string, password: string }) => { if (data.account && data.password) { if (data.account === 'root' && password === 'root@2024') { const res = await fetch('/api/bigModel'); console.log(res); } else { alert('账号密码不正确'); } } else { alert('请输入账号密码'); } } return (