From a2f0e85bef92b33030024f0ea975e9f11984d03a Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Mon, 11 Nov 2024 11:51:38 +0800 Subject: [PATCH] fixed: Fixed an issue where the rz command dialog could not be closed --- ui/src/hooks/useZsentry.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/src/hooks/useZsentry.ts b/ui/src/hooks/useZsentry.ts index 81cf0133..ca4f05ae 100644 --- a/ui/src/hooks/useZsentry.ts +++ b/ui/src/hooks/useZsentry.ts @@ -126,9 +126,13 @@ export const useSentry = (lastSendTime?: Ref, t?: any): IUseSentry => { }, onNegativeClick: () => { if (zmodeSession.value) { - debug('Cancel Abort'); - zmodeSession.value.abort(); + try { + zmodeSession.value.abort(); + } catch (e) { + return true; + } } + return true; } }; });