From f4527b883c7539b70414fd2376e5ac0faa2cd765 Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sat, 18 Feb 2023 00:07:50 +0800 Subject: [PATCH] update: note card options to context menu --- components/card/Note.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/card/Note.vue b/components/card/Note.vue index 1411e29..2c22407 100644 --- a/components/card/Note.vue +++ b/components/card/Note.vue @@ -13,7 +13,7 @@
@@ -45,7 +45,7 @@ const showDetail = ref(false); const showOptions = ref(false); - const options = ref(); + const contextMenu = ref(); const toggleOptions = () => { showOptions.value = !showOptions.value; @@ -59,7 +59,7 @@ navigateTo(`/notes/${id}`); }; - onClickOutside(options, (event) => { + onClickOutside(contextMenu, (event) => { toggleOptions(); });