This commit is contained in:
archer
2023-07-05 23:29:28 +08:00
parent 8e9816d648
commit 46f20c7dc3
18 changed files with 352 additions and 92 deletions

View File

@@ -7,7 +7,8 @@ import { useSendCode } from '@/hooks/useSendCode';
import type { ResLogin } from '@/api/response/user';
import { useToast } from '@/hooks/useToast';
import { useRouter } from 'next/router';
import { postCreateModel } from '@/api/app';
import { postCreateApp } from '@/api/app';
import { chatAppDemo } from '@/constants/app';
interface Props {
loginSuccess: (e: ResLogin) => void;
@@ -64,8 +65,9 @@ const RegisterForm = ({ setPageType, loginSuccess }: Props) => {
status: 'success'
});
// aut register a model
postCreateModel({
name: '应用1'
postCreateApp({
name: '应用1',
modules: chatAppDemo.modules
});
} catch (error: any) {
toast({