From 092bb683908afe7743e5f3aad57b16a4ed1cf812 Mon Sep 17 00:00:00 2001 From: lihui_ocr Date: Tue, 28 May 2024 08:27:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=BF=AB=E6=8D=B7=E9=94=AE=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Header/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/layout/components/Header/index.vue b/src/layout/components/Header/index.vue index 23f7065..955fbc7 100644 --- a/src/layout/components/Header/index.vue +++ b/src/layout/components/Header/index.vue @@ -198,8 +198,9 @@ const quillModalRef = ref(null) }, 5000) const mousetrap = inject('mousetrap') as any - function handleKeydown(){ - + function handleKeydown(e){ + + if(e.key=="c"||e.key=="C"){ const modal = unref(quillModalRef)! as any modal.closeModal() const modal1 = unref(shortcutModal)! as any @@ -208,7 +209,7 @@ const quillModalRef = ref(null) modal3.closeModal() const modal2 = unref(recycleModalRef)! as any modal2.closeModal() - + } } function closeModal() { showx.value = false