fix: 注释掉机器人注册失败的错误处理,直接添加机器人数据以简化逻辑

This commit is contained in:
xudan 2025-07-03 15:06:34 +08:00
parent cd22172224
commit cd422d54f1

View File

@ -38,8 +38,8 @@ const submit = async () => {
try {
await form.value?.validate();
const robot = await registerRobot(<RobotDetail>data);
if (isNil(robot)) throw Error('机器人注册失败');
editor.value.addRobots(data.gid, [robot]);
// if (isNil(robot)) throw Error('');
editor.value.addRobots(data.gid, [data as RobotDetail]);
show.value = false;
} catch (error) {
if (isError(error)) {