From 78ffc470889fcf38434521b3087bb2e21e5a9fce Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期五, 27 二月 2026 17:44:20 +0800
Subject: [PATCH] 个人中心菜单展示,鼠标悬浮展示调整为鼠标单击展示

---
 fzzy-igdss-web/src/main/resources/static/ruoyi/css/ry-ui.css  |    9 +++++++++
 fzzy-igdss-web/src/main/resources/templates/index-static.html |    2 +-
 fzzy-igdss-web/src/main/resources/templates/index.html        |    2 +-
 fzzy-igdss-web/src/main/resources/templates/index-topnav.html |    2 +-
 4 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/static/ruoyi/css/ry-ui.css b/fzzy-igdss-web/src/main/resources/static/ruoyi/css/ry-ui.css
index 28a1f48..5eb17e6 100644
--- a/fzzy-igdss-web/src/main/resources/static/ruoyi/css/ry-ui.css
+++ b/fzzy-igdss-web/src/main/resources/static/ruoyi/css/ry-ui.css
@@ -4,6 +4,15 @@
  */
 
 /** 鍩虹閫氱敤 **/
+/* 绂佺敤 dropdown 鐨勬偓鍋滄晥鏋� */
+.dropdown:hover .dropdown-menu {
+	display: none !important;
+}
+
+.dropdown.open .dropdown-menu {
+	display: block !important;
+}
+
 .pt5 {
 	padding-top: 5px;
 }
diff --git a/fzzy-igdss-web/src/main/resources/templates/index-static.html b/fzzy-igdss-web/src/main/resources/templates/index-static.html
index 3efb481..ba7987c 100644
--- a/fzzy-igdss-web/src/main/resources/templates/index-static.html
+++ b/fzzy-igdss-web/src/main/resources/templates/index-static.html
@@ -229,7 +229,7 @@
                     <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="鍏ㄥ睆鏄剧ず"
                            href="javascript:;" id="fullScreen"><i class="fa fa-arrows-alt"></i> 鍏ㄥ睆</a></li>
                     <li class="dropdown user-menu">
-                        <a href="javascript:void(0)" class="dropdown-toggle" data-hover="dropdown">
+                        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                             <img src="../static/img/profile.jpg" class="user-image">
                             <span class="hidden-xs">绠$悊鍛�</span>
                         </a>
diff --git a/fzzy-igdss-web/src/main/resources/templates/index-topnav.html b/fzzy-igdss-web/src/main/resources/templates/index-topnav.html
index 2906f13..8fbc7b3 100644
--- a/fzzy-igdss-web/src/main/resources/templates/index-topnav.html
+++ b/fzzy-igdss-web/src/main/resources/templates/index-topnav.html
@@ -285,7 +285,7 @@
                            href="javascript:;" id="fullScreen"><i class="fa fa-arrows-alt"></i> 鍏ㄥ睆</a></li>
 
                     <li class="dropdown user-menu">
-                        <a href="javascript:void(0)" class="dropdown-toggle" data-hover="dropdown">
+                        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                             <img th:src="(${#strings.isEmpty(user.avatar)}) ? @{/img/profile.jpg} : @{${user.avatar}}"
                                  th:onerror="this.src='img/profile.jpg'" class="user-image">
                             <span class="hidden-xs">[[${#strings.defaultString(user.userName, '-')}]]</span>
diff --git a/fzzy-igdss-web/src/main/resources/templates/index.html b/fzzy-igdss-web/src/main/resources/templates/index.html
index c673d44..21842f0 100644
--- a/fzzy-igdss-web/src/main/resources/templates/index.html
+++ b/fzzy-igdss-web/src/main/resources/templates/index.html
@@ -124,7 +124,7 @@
                     <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="鍏ㄥ睆鏄剧ず"
                            href="javascript:;" id="fullScreen"><i class="fa fa-arrows-alt"></i> 鍏ㄥ睆</a></li>
                     <li class="dropdown user-menu">
-                        <a href="javascript:void(0)" class="dropdown-toggle" data-hover="dropdown">
+                        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                             <img th:src="(${#strings.isEmpty(user.avatar)}) ? @{/img/profile.jpg} : @{${user.avatar}}"
                                  th:onerror="this.src='img/profile.jpg'" class="user-image">
                             <span class="hidden-xs">[[${#strings.defaultString(user.userName, '-')}]]</span>

--
Gitblit v1.9.3