修改编辑配置,关闭供应商,修复供应商开启问题

This commit is contained in:
小帅 2026-04-03 18:35:08 +08:00
parent 59bb3e130b
commit 6e8d8c0029
3 changed files with 1 additions and 2 deletions

View File

@ -8,6 +8,7 @@ export default router.post(
"/",
validateFields({
id: z.string(),
enable: z.number(),
}),
async (req, res) => {
const { id, enable } = req.body;

View File

@ -95,7 +95,6 @@ export default router.post(
inputValues: JSON.stringify(vendor.inputValues ?? {}),
models: JSON.stringify(vendor.models ?? []),
code: tsCode,
enable: 0,
createTime: Date.now(),
});
res.status(200).send(success(result.data));

View File

@ -67,7 +67,6 @@ export default router.post(
inputs: JSON.stringify(inputs),
inputValues: JSON.stringify(inputValues),
models: JSON.stringify(models),
enable: id == "toonflow" ? 1 : 0,
});
res.status(200).send(success("更新成功"));
},