fix: 注释掉机器人注册失败的错误处理,直接添加机器人数据以简化逻辑
This commit is contained in:
parent
cd22172224
commit
cd422d54f1
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user