fix: 注释掉机器人注册失败的错误处理,直接添加机器人数据以简化逻辑
This commit is contained in:
parent
cd22172224
commit
cd422d54f1
@ -38,8 +38,8 @@ const submit = async () => {
|
|||||||
try {
|
try {
|
||||||
await form.value?.validate();
|
await form.value?.validate();
|
||||||
const robot = await registerRobot(<RobotDetail>data);
|
const robot = await registerRobot(<RobotDetail>data);
|
||||||
if (isNil(robot)) throw Error('机器人注册失败');
|
// if (isNil(robot)) throw Error('机器人注册失败');
|
||||||
editor.value.addRobots(data.gid, [robot]);
|
editor.value.addRobots(data.gid, [data as RobotDetail]);
|
||||||
show.value = false;
|
show.value = false;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (isError(error)) {
|
if (isError(error)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user