|
|
@@ -4,6 +4,7 @@ import { IconButton } from './button';
|
|
|
import ReturnIcon from "../icons/return.svg";
|
|
|
import Excel from 'js-export-excel';
|
|
|
import dayjs from 'dayjs';
|
|
|
+import { ApiPath } from "@/app/constant";
|
|
|
|
|
|
const RecordApp: React.FC = () => {
|
|
|
const [account, setAccount] = React.useState('');
|
|
|
@@ -13,7 +14,7 @@ const RecordApp: React.FC = () => {
|
|
|
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');
|
|
|
+ const res = await fetch(ApiPath.BigModel);
|
|
|
const body = await res.json();
|
|
|
const list: {
|
|
|
id: string;
|