feat: 模型数量增加。滚动条位置
This commit is contained in:
@@ -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 个模型');
|
||||
}
|
||||
|
||||
// 创建模型
|
||||
|
||||
Reference in New Issue
Block a user