diff --git a/src/components/modal/robot-register-modal.vue b/src/components/modal/robot-register-modal.vue index dbacc0d..86bd036 100644 --- a/src/components/modal/robot-register-modal.vue +++ b/src/components/modal/robot-register-modal.vue @@ -38,8 +38,8 @@ const submit = async () => { try { await form.value?.validate(); const robot = await registerRobot(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)) {