feat: 模型数量增加。滚动条位置

This commit is contained in:
Archer
2023-03-18 00:53:00 +08:00
parent 38c093d9ae
commit 9384419c9d
2 changed files with 32 additions and 29 deletions

View File

@@ -43,8 +43,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
const authCount = await Model.countDocuments({
userId
});
if (authCount >= 5) {
throw new Error('上限5个模型');
if (authCount >= 10) {
throw new Error('上限 10 个模型');
}
// 创建模型