hookehuyr

fix(Header): 添加点击事件以切换个人资料下拉菜单状态

在Header组件中,为个人资料下拉菜单添加了点击事件,使得点击菜单时可以切换其显示状态,提升用户体验。
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
51 </button> 51 </button>
52 52
53 <!-- Profile Dropdown --> 53 <!-- Profile Dropdown -->
54 - <div v-if="isProfileDropdownOpen" class="absolute right-0 mt-2 w-48 py-2 bg-white rounded-md shadow-lg backdrop-blur-xl bg-white/90 z-20"> 54 + <div v-if="isProfileDropdownOpen" @click="isProfileDropdownOpen = !isProfileDropdownOpen" class="absolute right-0 mt-2 w-48 py-2 bg-white rounded-md shadow-lg backdrop-blur-xl bg-white/90 z-20">
55 <router-link to="/profile" class="block px-4 py-2 text-sm text-gray-700 hover:bg-green-50 hover:text-green-500"> 55 <router-link to="/profile" class="block px-4 py-2 text-sm text-gray-700 hover:bg-green-50 hover:text-green-500">
56 个人资料 56 个人资料
57 </router-link> 57 </router-link>
......