From cd422d54f18036eaae49c211762746c2c20a0a78 Mon Sep 17 00:00:00 2001 From: xudan Date: Thu, 3 Jul 2025 15:06:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B3=A8=E9=87=8A=E6=8E=89=E6=9C=BA?= =?UTF-8?q?=E5=99=A8=E4=BA=BA=E6=B3=A8=E5=86=8C=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86=EF=BC=8C=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=BA=E5=99=A8=E4=BA=BA=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=BB=A5=E7=AE=80=E5=8C=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/modal/robot-register-modal.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) {