From dde4d2880b18b19f31b5cc590dbc5187ff3464da Mon Sep 17 00:00:00 2001 From: mmc <1556375442@qq.com> Date: Wed, 20 May 2026 17:19:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E5=99=A8=E4=BA=BA=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=20=20=20=E7=8A=B6=E6=80=81=20=20=E6=9D=83=E9=99=90=20=20?= =?UTF-8?q?=E6=9C=AA=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/devices/DeviceStatusPage.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/devices/DeviceStatusPage.tsx b/src/components/devices/DeviceStatusPage.tsx index 64fc4f2..91fb6a3 100644 --- a/src/components/devices/DeviceStatusPage.tsx +++ b/src/components/devices/DeviceStatusPage.tsx @@ -204,15 +204,18 @@ export default function DeviceStatusPage({ true, 'switchResult', ); + controllerRef.current.setIsControlled(false); setIsModalOpen(false); }; const handleCancel = () => { + controllerRef.current?.sendPermissionRequest( false, 'switchResult', ); + controllerRef.current.setIsControlled(true); setIsModalOpen(false); };