diff --git a/components/pages/common/Header.vue b/components/pages/common/Header.vue index 6d0fca5..190f606 100644 --- a/components/pages/common/Header.vue +++ b/components/pages/common/Header.vue @@ -2,19 +2,27 @@ import { BLOG_TITLE, BLOG_CATEGORIES } from "@/utils/const"; const headerCategories = BLOG_CATEGORIES.filter((category) => category.isShowList); +const menuDropDownRef = ref(null); + +const onMenuClick = () => { + if (!menuDropDownRef.value) { + return; + } + menuDropDownRef.value.open = false; +};